1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-06-15 15:25:49 +00:00
Files
gnulib/modules/sethostname-tests
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

19 lines
344 B
Plaintext

Files:
tests/test-sethostname1.c
tests/test-sethostname2.c
tests/signature.h
tests/macros.h
Depends-on:
gethostname
root-uid
streq
configure.ac:
AC_CHECK_FUNCS_ONCE([geteuid])
Makefile.am:
TESTS += test-sethostname1 test-sethostname2
check_PROGRAMS += test-sethostname1 test-sethostname2
test_sethostname2_LDADD = $(LDADD) @GETHOSTNAME_LIB@