Bruno Haible
b2a583ead5
tests: Use memeq, part 1.
...
Done through
sed -e 's/memcmp \([(][^()]*[)]\) == 0/memeq \1/g' \
-e 's/memcmp \([(][^()]*[(][^()]*[)][^()]*[)]\) == 0/memeq \1/g'
* tests/**/*.[hc]: Use memeq instead of memcmp ... == 0.
* modules/*-tests (Dependencies): Add memeq.
2026-03-01 12:36:28 +01:00
Bruno Haible
69297aa373
tests: Use streq, part 2.
...
Done through sed -e 's/strcmp \([(][^()]*[)]\) != 0/!streq \1/'
* tests/**/*.[hc]: Use !streq instead of strcmp ... != 0.
* modules/*-tests (Dependencies): Add streq.
2026-03-01 10:04:06 +01:00
Bruno Haible
6219ae745f
tests: Fix internationalization problems on native Windows.
...
* doc/posix-functions/setlocale.texi: Clarify the deficiency of
setlocale() on native Windows.
* modules/c-nstrftime-tests (Depends-on): Add setlocale.
* modules/dfa-tests (Depends-on): Likewise.
* modules/hard-locale-tests (Depends-on): Likewise.
* modules/localcharset-tests (Depends-on): Likewise.
* modules/nstrftime-tests (Depends-on): Likewise.
2024-05-27 22:33:33 +02:00
Bruno Haible
e9ae614c44
c-nstrftime: Add tests.
...
* tests/test-c-nstrftime.c: New file, based on tests/test-nstrftime.c.
* tests/test-c-nstrftime-1.sh: New file, based on
tests/test-nstrftime-1.sh.
* tests/test-c-nstrftime-2.sh: New file, based on
tests/test-nstrftime-2.sh.
* modules/c-nstrftime-tests: New file.
2024-02-08 01:25:32 +01:00