annotate modules/c-strcase-tests @ 40214:452ab00796c7

Fix undefined behaviour. * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Case x to 'unsigned int', to avoid shift operations on 'int'. * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size. * tests/test-count-leading-zeros.c (main): Use a random number that has as many bits as TYPE, not only 2*15 or 2*31 bits. * tests/test-count-trailing-zeros.c (main): Likewise. * tests/test-count-one-bits.c (main): Likewise. * tests/test-memmem.c: Don't include "null-ptr.h". (main): Use zerosize_ptr() instead of null_ptr(). * modules/memmem-tests (Files): Remove tests/null-ptr.h.
author Bruno Haible <bruno@clisp.org>
date Sat, 09 Mar 2019 20:32:25 +0100
parents f6ce7f5ed48d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8414
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 Files:
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 tests/test-c-strcase.sh
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 tests/test-c-strcasecmp.c
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 tests/test-c-strncasecmp.c
12496
a48d3d749ca5 Refactor common macros used in tests.
Bruno Haible <bruno@clisp.org>
parents: 10935
diff changeset
5 tests/macros.h
8414
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 m4/locale-fr.m4
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 m4/locale-tr.m4
10935
b8b471b7c90f codeset.m4 is required by locale-fr.m4.
Bruno Haible <bruno@clisp.org>
parents: 9284
diff changeset
8 m4/codeset.m4
8414
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 Depends-on:
18375
f6ce7f5ed48d c-strcase-tests, wcwidth-tests: depend on c-ctype
Paul Eggert <eggert@cs.ucla.edu>
parents: 14335
diff changeset
11 c-ctype
14335
413f5a66c55a Avoid setlocale bugs in tests.
Bruno Haible <bruno@clisp.org>
parents: 12775
diff changeset
12 setlocale
8414
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 configure.ac:
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 gt_LOCALE_FR
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 gt_LOCALE_TR_UTF8
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 Makefile.am:
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 TESTS += test-c-strcase.sh
12775
03aab12b3f15 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
Bruno Haible <bruno@clisp.org>
parents: 12496
diff changeset
20 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@'
8414
da8cfeefc405 Tests for module 'c-strcase'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 check_PROGRAMS += test-c-strcasecmp test-c-strncasecmp