2016-08-19 Daniel Richard G. * tests/test-c-strncasecmp.c: Allow two c_strncasecmp() calls which assume ASCII encoding semantics to run only in ASCII mode, as they fail in EBCDIC * tests/test-sigpipe.sh: Fixed typo --- tests/test-c-strncasecmp.c | 3 +++ tests/test-sigpipe.sh | 2 +- diff --git a/tests/test-c-strncasecmp.c b/tests/test-c-strncasecmp.c index 1ca42d8..349f6b3 100644 --- a/tests/test-c-strncasecmp.c +++ b/tests/test-c-strncasecmp.c @@ -19,6 +19,7 @@ #include #include "c-strcase.h" +#include "c-ctype.h" #include #include @@ -71,9 +72,11 @@ main (int argc, char *argv[]) ASSERT (c_strncasecmp ("\303\266zg\303\274r", "\303\226ZG\303\234R", 99) > 0); /* özgür */ ASSERT (c_strncasecmp ("\303\226ZG\303\234R", "\303\266zg\303\274r", 99) < 0); /* özgür */ +#if C_CTYPE_ASCII /* This test shows how strings of different size cannot compare equal. */ ASSERT (c_strncasecmp ("turkish", "TURK\304\260SH", 7) < 0); ASSERT (c_strncasecmp ("TURK\304\260SH", "turkish", 7) > 0); +#endif return 0; } diff --git a/tests/test-sigpipe.sh b/tests/test-sigpipe.sh index bc2baf2..6cf3242 100755 --- a/tests/test-sigpipe.sh +++ b/tests/test-sigpipe.sh @@ -21,7 +21,7 @@ fi # Test signal's behaviour when a handler is installed. tmpfiles="$tmpfiles t-sigpipeC.tmp" -./test-sigpipe${EXEEXT} B 2> t-sigpipeC.tmp | head -1 > /dev/null +./test-sigpipe${EXEEXT} C 2> t-sigpipeC.tmp | head -1 > /dev/null if test -s t-sigpipeC.tmp; then LC_ALL=C tr -d '\r' < t-sigpipeC.tmp rm -fr $tmpfiles; exit 1 -- 2.9.0