summaryrefslogtreecommitdiff
path: root/modules/sethostname-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-12-03 14:50:45 +0100
committerBruno Haible <bruno@clisp.org>2011-12-03 14:50:45 +0100
commit97aaf15f6bac2ddf086743f207c8c07a864b3a22 (patch)
treec763a976d51a86db07802bb9579dc51b8dafbd36 /modules/sethostname-tests
parent146ac55d8a5825569c84a1be5561cf8a624bfe1f (diff)
downloadgnulib-97aaf15f6bac2ddf086743f207c8c07a864b3a22.tar.gz
Tweak last commit.
* modules/sethostname-tests (Files): Sort by decreasing importance. (configure.ac): Check for geteuid. * tests/test-sethostname.c (main): Emit error messages to stderr. Skip the test when there's nothing to test. Drop an unnecessary cast. Improve an error message. Verify that the final sethostname() call succeeds.
Diffstat (limited to 'modules/sethostname-tests')
-rw-r--r--modules/sethostname-tests3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/sethostname-tests b/modules/sethostname-tests
index 040b380bf5..60785f0d51 100644
--- a/modules/sethostname-tests
+++ b/modules/sethostname-tests
@@ -1,12 +1,13 @@
Files:
-tests/signature.h
tests/test-sethostname.c
+tests/signature.h
tests/macros.h
Depends-on:
sys_types
configure.ac:
+AC_CHECK_FUNCS_ONCE([geteuid])
Makefile.am:
TESTS += test-sethostname