diff options
author | Bruno Haible <bruno@clisp.org> | 2011-12-03 14:50:45 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-12-03 14:50:45 +0100 |
commit | 97aaf15f6bac2ddf086743f207c8c07a864b3a22 (patch) | |
tree | c763a976d51a86db07802bb9579dc51b8dafbd36 /modules/sethostname-tests | |
parent | 146ac55d8a5825569c84a1be5561cf8a624bfe1f (diff) | |
download | gnulib-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-tests | 3 |
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 |