Mercurial > gnulib
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 |
rev | line source |
---|---|
8414 | 1 Files: |
2 tests/test-c-strcase.sh | |
3 tests/test-c-strcasecmp.c | |
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 | 6 m4/locale-fr.m4 |
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 | 9 |
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 | 13 |
14 configure.ac: | |
15 gt_LOCALE_FR | |
16 gt_LOCALE_TR_UTF8 | |
17 | |
18 Makefile.am: | |
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 | 21 check_PROGRAMS += test-c-strcasecmp test-c-strncasecmp |