mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-17 12:41:05 +03:00
* tests/test-sethostname1.c: New file, extracted from tests/test-sethostname.c. * tests/test-sethostname2.c: New file, extracted from tests/test-sethostname.c. * tests/test-sethostname.c: Remove file. * modules/sethostname-tests (Files): Add tests/test-sethostname1.c, tests/test-sethostname2.c. Remove tests/test-sethostname.c. (Depends-on): Add gethostname. (Makefile.am): Compile both test-sethostname1 and test-sethostname2. Link the latter with $(GETHOSTNAME_LIB).
17 lines
329 B
Plaintext
17 lines
329 B
Plaintext
Files:
|
|
tests/test-sethostname1.c
|
|
tests/test-sethostname2.c
|
|
tests/signature.h
|
|
tests/macros.h
|
|
|
|
Depends-on:
|
|
gethostname
|
|
|
|
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@
|