]> code.ossystems Code Review - openembedded-core.git/commitdiff
libpcre-ptest: skip locale test
authorJuro Bystricky <juro.bystricky@intel.com>
Thu, 29 Mar 2018 20:27:02 +0000 (13:27 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 30 Mar 2018 08:40:34 +0000 (09:40 +0100)
If a fr_FR locale is found, it is automatically tested. The test
will fail if the locale is UTF-8, as the test blindly assumes
(and expects) a non-UTF fr_FR locale.
The remedy is to skip the test.

[YOCTO #12215]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/libpcre/libpcre_8.41.bb

index 0eaed1808a5c5cd303b3fe58e39de55f6e81fcde..0187c08f5056ec8a2d4e64dce4bfbba1ef07e4a3 100644 (file)
@@ -80,4 +80,8 @@ do_install_ptest() {
        for i in RunTest RunGrepTest test-driver; \
          do cp ${S}/$i $t; \
        done
+       # Skip the fr_FR locale test. If the locale fr_FR is found, it is tested.
+       # If not found, the test is skipped. The test program assumes fr_FR is non-UTF-8
+       # locale so the test fails if fr_FR is UTF-8 locale.
+       sed -i -e 's:do3=yes:do3=no:g' ${D}${PTEST_PATH}/RunTest 
 }