1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-04-28 06:33:36 +00:00

tests: Use streq, part 1.

Done through sed -e 's/strcmp \([(][^()]*[)]\) == 0/streq \1/'

* tests/**/*.[hc]: Use streq instead of strcmp ... == 0.
* modules/*-tests (Dependencies): Add streq.
This commit is contained in:
Bruno Haible
2026-03-01 09:23:18 +01:00
parent 2a893de047
commit 64e78e4467
291 changed files with 3643 additions and 3480 deletions

View File

@@ -1,3 +1,10 @@
2026-03-01 Bruno Haible <bruno@clisp.org>
tests: Use streq, part 1.
Done through sed -e 's/strcmp \([(][^()]*[)]\) == 0/streq \1/'
* tests/**/*.[hc]: Use streq instead of strcmp ... == 0.
* modules/*-tests (Dependencies): Add streq.
2026-02-28 Bruno Haible <bruno@clisp.org>
filesystem-remote: New module.

View File

@@ -8,6 +8,7 @@ Depends-on:
creat
root-uid
symlink
streq
configure.ac:
AC_CHECK_FUNCS_ONCE([geteuid])

View File

@@ -7,6 +7,7 @@ Depends-on:
ignore-value
bool
symlink
streq
configure.ac:

View File

@@ -7,6 +7,7 @@ Depends-on:
ignore-value
bool
symlink
streq
configure.ac:

View File

@@ -7,6 +7,7 @@ Depends-on:
ignore-value
bool
symlink
streq
configure.ac:

View File

@@ -6,6 +6,7 @@ tests/macros.h
Depends-on:
ignore-value
bool
streq
configure.ac:

View File

@@ -6,6 +6,7 @@ Depends-on:
xlist
array-list
xalloc
streq
configure.ac:

View File

@@ -3,6 +3,7 @@ tests/test-astrxfrm.c
tests/macros.h
Depends-on:
streq
configure.ac:

View File

@@ -4,6 +4,7 @@ tests/macros.h
Depends-on:
array-list
streq
configure.ac:

View File

@@ -3,6 +3,7 @@ tests/test-base32.c
tests/macros.h
Depends-on:
streq
configure.ac:

View File

@@ -3,6 +3,7 @@ tests/test-base64.c
tests/macros.h
Depends-on:
streq
configure.ac:

View File

@@ -3,6 +3,7 @@ tests/test-bcp47.c
tests/macros.h
Depends-on:
streq
configure.ac:

View File

@@ -11,6 +11,7 @@ m4/codeset.m4
Depends-on:
setlocale
streq
configure.ac:
gt_LOCALE_EN_UTF8

View File

@@ -11,6 +11,7 @@ m4/codeset.m4
Depends-on:
setlocale
streq
configure.ac:
gt_LOCALE_EN_UTF8

View File

@@ -8,6 +8,7 @@ m4/codeset.m4
Depends-on:
setlocale
streq
configure.ac:
gt_LOCALE_FR

View File

@@ -7,6 +7,7 @@ m4/codeset.m4
Depends-on:
setlocale
streq
configure.ac:
gt_LOCALE_FR

View File

@@ -8,6 +8,7 @@ m4/codeset.m4
Depends-on:
setlocale
streq
configure.ac:
gt_LOCALE_FR

View File

@@ -8,6 +8,7 @@ m4/codeset.m4
Depends-on:
setlocale
streq
configure.ac:
gt_LOCALE_FR

View File

@@ -9,6 +9,7 @@ ignore-value
same-inode
symlink
str_endswith
streq
configure.ac:

View File

@@ -8,6 +8,7 @@ ignore-value
same-inode
symlink
str_endswith
streq
configure.ac:

View File

@@ -7,6 +7,7 @@ Depends-on:
mtx
thrd
gettimeofday
streq
configure.ac:
AC_CHECK_DECLS_ONCE([alarm])

View File

@@ -8,6 +8,9 @@ thread
yield
gettimeofday
sleep
streq
configure.ac:
Makefile.am:
TESTS += test-cond

View File

@@ -4,6 +4,7 @@ tests/signature.h
tests/macros.h
Depends-on:
streq
configure.ac:

View File

@@ -3,6 +3,7 @@ tests/test-dirname.c
Depends-on:
strdup
streq
configure.ac:

View File

@@ -6,6 +6,7 @@ m4/intl-thread-locale.m4
Depends-on:
langinfo-h
streq
configure.ac:
AC_CHECK_FUNCS_ONCE([strfmon_l snprintf_l])

View File

@@ -5,6 +5,7 @@ Depends-on:
assert-h
c99
errno-h-c++-tests
streq
configure.ac:

View File

@@ -8,6 +8,7 @@ Depends-on:
creat
root-uid
symlink
streq
configure.ac:
AC_CHECK_FUNCS_ONCE([geteuid])

View File

@@ -13,6 +13,9 @@ Depends-on:
argmatch
error
test-framework-sh
streq
configure.ac:
Makefile.am:
TESTS += \

View File

@@ -18,6 +18,7 @@ read-file
bool
stdint-h
unistd-h
streq
configure.ac:
dnl Test for Linux system call close_range(), declared in <unistd.h>.

View File

@@ -7,6 +7,7 @@ Depends-on:
cloexec
getcwd-lgpl
dup
streq
configure.ac:

View File

@@ -26,6 +26,7 @@ setlocale
localcharset
mbrtowc
wctype-h
streq
configure.ac:
gt_LOCALE_EN_UTF8

View File

@@ -10,6 +10,7 @@ c99
errno-h
remove
unlinkat
streq
configure.ac:

View File

@@ -2,6 +2,9 @@ Files:
tests/test-func.c
tests/macros.h
Depends-on:
streq
configure.ac:
Makefile.am:

View File

@@ -4,6 +4,7 @@ tests/signature.h
tests/macros.h
Depends-on:
streq
configure.ac:

View File

@@ -4,6 +4,7 @@ tests/signature.h
tests/macros.h
Depends-on:
streq
configure.ac:

View File

@@ -3,6 +3,7 @@ tests/signature.h
tests/test-getdomainname.c
Depends-on:
streq
configure.ac:

View File

@@ -3,6 +3,7 @@ tests/signature.h
tests/test-gethostname.c
Depends-on:
streq
configure.ac:

View File

@@ -4,6 +4,7 @@ tests/signature.h
tests/macros.h
Depends-on:
streq
configure.ac:

View File

@@ -7,6 +7,7 @@ Depends-on:
newlocale
freelocale
setlocale
streq
configure.ac:

View File

@@ -6,6 +6,7 @@ tests/macros.h
Depends-on:
bool
streq
configure.ac:

View File

@@ -6,6 +6,7 @@ tests/macros.h
Depends-on:
bool
streq
configure.ac:

View File

@@ -3,6 +3,7 @@ tests/test-getndelim2.c
tests/macros.h
Depends-on:
streq
configure.ac:

View File

@@ -12,6 +12,7 @@ setenv
bool
unistd-h
unsetenv
streq
configure.ac:

View File

@@ -11,6 +11,7 @@ setenv
bool
unistd-h
unsetenv
streq
configure.ac:

View File

@@ -6,6 +6,7 @@ tests/macros.h
Depends-on:
fcntl-h
symlink
streq
configure.ac:

View File

@@ -5,6 +5,7 @@ tests/macros.h
Depends-on:
array-map
xalloc
streq
configure.ac:

View File

@@ -14,6 +14,7 @@ tests/macros.h
Depends-on:
bool
streq
configure.ac:

View File

@@ -14,6 +14,7 @@ tests/macros.h
Depends-on:
bool
streq
configure.ac:

View File

@@ -6,6 +6,7 @@ tests/macros.h
Depends-on:
bool
_Exit
streq
configure.ac:

View File

@@ -6,6 +6,7 @@ tests/macros.h
Depends-on:
netinet_in-h
sys_socket-h
streq
configure.ac:
AC_C_BIGENDIAN

View File

@@ -9,6 +9,7 @@ ignore-value
errno-h
bool
sys_stat-h
streq
configure.ac:

View File

@@ -11,6 +11,7 @@ filenamecat-lgpl
getcwd-lgpl
same-inode
unlinkat
streq
configure.ac:

View File

@@ -4,6 +4,7 @@ tests/macros.h
Depends-on:
array-list
streq
configure.ac:

View File

@@ -5,6 +5,7 @@ tests/macros.h
Depends-on:
array-map
xalloc
streq
configure.ac:

View File

@@ -5,6 +5,7 @@ tests/macros.h
Depends-on:
ansi-c++-opt
array-list
streq
configure.ac:

View File

@@ -9,6 +9,7 @@ m4/windows-rc.m4
Depends-on:
setlocale
test-xfail
streq
configure.ac:
gl_WINDOWS_RC

View File

@@ -15,6 +15,7 @@ unsetenv
setlocale
strdup
test-xfail
streq
configure.ac:
gl_CHECK_FUNCS_ANDROID([newlocale], [[#include <locale.h>]])

View File

@@ -26,6 +26,7 @@ mbsinit
wctob
setlocale
localcharset
streq
configure.ac:
gt_LOCALE_EN_UTF8

View File

@@ -27,6 +27,7 @@ btoc32
c32tob
setlocale
localcharset
streq
configure.ac:
gt_LOCALE_EN_UTF8

View File

@@ -27,6 +27,7 @@ btoc32
c32tob
setlocale
localcharset
streq
configure.ac:
gt_LOCALE_EN_UTF8

View File

@@ -32,6 +32,7 @@ wctob
setlocale
localcharset
test-xfail
streq
configure.ac:
gt_LOCALE_EN_UTF8

View File

@@ -19,6 +19,7 @@ mbsinit
btoc32
c32tob
setlocale
streq
configure.ac:
gt_LOCALE_EN_UTF8

View File

@@ -18,6 +18,7 @@ mbrtowc
mbsinit
wctob
setlocale
streq
configure.ac:
gt_LOCALE_EN_UTF8

View File

@@ -19,6 +19,7 @@ mbsinit
btoc32
c32tob
setlocale
streq
configure.ac:
gt_LOCALE_EN_UTF8

View File

@@ -18,6 +18,7 @@ mbrtowc
mbsinit
wctob
setlocale
streq
configure.ac:
gt_LOCALE_EN_UTF8

View File

@@ -17,6 +17,7 @@ Depends-on:
btoc32
c32tob
setlocale
streq
configure.ac:
gt_LOCALE_EN_UTF8

View File

@@ -18,6 +18,7 @@ mbrtowc
mbsinit
wctob
setlocale
streq
configure.ac:
gt_LOCALE_EN_UTF8

View File

@@ -9,6 +9,7 @@ Depends-on:
thrd
stdint-h
random
streq
configure.ac:
AC_CHECK_HEADERS_ONCE([semaphore.h])

View File

@@ -18,6 +18,7 @@ setlocale
thread
nanosleep
bool
streq
configure.ac:
gt_LOCALE_FR

View File

@@ -25,6 +25,7 @@ localcharset
setenv
setlocale
strerror
streq
configure.ac:
gt_LOCALE_FR

View File

@@ -6,6 +6,7 @@ tests/macros.h
Depends-on:
xalloc
streq
configure.ac:

View File

@@ -7,6 +7,7 @@ tests/macros.h
Depends-on:
xalloc
obstack-zprintf-extra-tests
streq
configure.ac:

View File

@@ -5,6 +5,7 @@ tests/macros.h
Depends-on:
ansi-c++-opt
array-omap
streq
configure.ac:

View File

@@ -7,6 +7,7 @@ Depends-on:
bool
setenv
unsetenv
streq
configure.ac:

View File

@@ -5,6 +5,7 @@ tests/macros.h
Depends-on:
ansi-c++-opt
array-oset
streq
configure.ac:

View File

@@ -15,6 +15,7 @@ snan
read-file
full-write
usleep
streq
configure.ac:

View File

@@ -14,6 +14,7 @@ c-ctype
snan
read-file
full-write
streq
configure.ac:

View File

@@ -21,6 +21,7 @@ environ
fflush
freopen
waitpid
streq
configure.ac:

View File

@@ -8,6 +8,7 @@ pthread-thread
pthread-mutex
nanosleep
sched_yield
streq
configure.ac:
AC_CHECK_DECLS_ONCE([alarm])

View File

@@ -9,6 +9,7 @@ Depends-on:
pthread-thread
sched_yield
random
streq
configure.ac:
AC_CHECK_HEADERS_ONCE([semaphore.h])

View File

@@ -10,6 +10,7 @@ inttypes-h
sleep
pthread-thread
test-xfail
streq
configure.ac:

View File

@@ -5,6 +5,7 @@ tests/macros.h
Depends-on:
same-inode
streq
configure.ac:
AC_CHECK_DECLS_ONCE([alarm])

View File

@@ -6,6 +6,7 @@ tests/macros.h
Depends-on:
same-inode
streq
configure.ac:
AC_CHECK_DECLS_ONCE([alarm])

View File

@@ -6,6 +6,7 @@ tests/macros.h
Depends-on:
test-framework-sh
streq
configure.ac:

View File

@@ -4,6 +4,7 @@ tests/macros.h
Depends-on:
array-list
streq
configure.ac:

View File

@@ -5,6 +5,7 @@ tests/macros.h
Depends-on:
regex
xalloc
streq
configure.ac:

View File

@@ -14,6 +14,7 @@ sys_stat-h
opendir
readdir
closedir
streq
configure.ac:

View File

@@ -11,6 +11,7 @@ getcwd-lgpl
opendir
readdir
closedir
streq
configure.ac:

View File

@@ -11,6 +11,7 @@ getcwd-lgpl
opendir
readdir
closedir
streq
configure.ac:

View File

@@ -5,6 +5,7 @@ tests/macros.h
Depends-on:
ansi-c++-opt
array-set
streq
configure.ac:

View File

@@ -20,6 +20,7 @@ Depends-on:
strdup
str_endswith
test-xfail
streq
configure.ac:
gt_LOCALE_FR

View File

@@ -3,6 +3,7 @@ tests/test-sh-quote.c
tests/macros.h
Depends-on:
streq
configure.ac:

View File

@@ -8,6 +8,7 @@ Depends-on:
inttypes-h
sleep
test-xfail
streq
configure.ac:

View File

@@ -4,6 +4,7 @@ tests/signature.h
tests/macros.h
Depends-on:
streq
configure.ac:

View File

@@ -5,6 +5,7 @@ tests/macros.h
Depends-on:
snprintf-posix-tests
streq
configure.ac:

View File

@@ -13,6 +13,7 @@ stdint-h
float-h
nan
snan
streq
configure.ac:
AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])

View File

@@ -4,6 +4,7 @@ tests/signature.h
tests/macros.h
Depends-on:
streq
configure.ac:

View File

@@ -4,6 +4,7 @@ tests/test-snzprintf-gnu.h
tests/macros.h
Depends-on:
streq
configure.ac:

View File

@@ -6,6 +6,7 @@ tests/macros.h
Depends-on:
nan
streq
configure.ac:

View File

@@ -5,6 +5,7 @@ tests/macros.h
Depends-on:
sprintf-posix-tests
streq
configure.ac:

Some files were not shown because too many files have changed in this diff Show More