From 40324ca8b22a538e31aa2f9a8ac03f03f7d0537e Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 12 Nov 2011 01:25:45 +0100 Subject: id: fail when getuid, getgid, etc. fail, e.g., on GNU/Hurd POSIX-conforming getuid, geteuid, etc. functions cannot fail, but on GNU/Hurd systems and some others, they may. * src/id.c (main) [__GNU__]: Detect and diagnose any such failure. * tests/id/gnu-zero-uids: New file. * tests/Makefile.am (TESTS): Add it to the list. * tests/init.cfg (require_gnu_): New function. --- tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 64366a491..48c33cb99 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -399,6 +399,7 @@ TESTS = \ du/slink \ du/trailing-slash \ du/two-args \ + id/gnu-zero-uids \ id/no-context \ install/basic-1 \ install/create-leading \ -- cgit v1.2.3-54-g00ecf