]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
findutils: Use C locale to run ptests
authorKhem Raj <raj.khem@gmail.com>
Thu, 21 Aug 2025 18:12:46 +0000 (11:12 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Aug 2025 16:46:38 +0000 (17:46 +0100)
Ensure consistent locale setting, since we are not
using make environemnt to run the tests like
upstream does. The test scripts are run explicitly

This fixes a problem with musl ptest runs where the
locale-driven quoting ends up using C.UTF-8 quotes
in gnulib’s quotearg() end up with curly quotes
instead of ASCII quote character which is expected
and result is reported as failure even though numbers
are matching.

Fixes:

-find: invalid group name or GID argument to -group: '4294967296'
+find: invalid group name or GID argument to -group: ‘4294967296

FAIL: tests/find/user-group-max.sh

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/recipes-extended/findutils/findutils/run-ptest

index 0c9af47efdb8ecd72de144ad209b3570a2dc64d1..afe004b01a9c2d04ec34daf92210d973edb1d9d4 100644 (file)
@@ -13,6 +13,9 @@ export built_programs="find xargs locate updatedb"
 # this gets substituted by sed during build
 export VERSION="__run_ptest_version__"
 
+# Force ASCII quotes so exp vs err comparisons are stable across locales.
+export LC_ALL=C
+
 for f in tests/*/*.sh; do
        bash $f ;
        case $? in