aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Simon Marlow <marlowsd@gmail.com>2009-09-17 13:40:46 +0000
committerGravatar Simon Marlow <marlowsd@gmail.com>2009-09-17 13:40:46 +0000
commit1affe6b3f8d81b483360cc30f2e2dc56278b7f03 (patch)
treeed939686d0ad85712486963cf32b371a2a924246
parent4cddcfd678da145f24177a16c1c17271f81b6b5d (diff)
Add comments about why user001 might fail on Linux.
-rw-r--r--System/Posix/User.hsc6
-rw-r--r--tests/all.T5
2 files changed, 11 insertions, 0 deletions
diff --git a/System/Posix/User.hsc b/System/Posix/User.hsc
index 88150a0..2427de0 100644
--- a/System/Posix/User.hsc
+++ b/System/Posix/User.hsc
@@ -213,6 +213,12 @@ getGroupEntryForName = error "System.Posix.User.getGroupEntryForName: not suppor
-- | @getAllGroupEntries@ returns all group entries on the system by
-- repeatedly calling @getgrent@
+
+--
+-- getAllGroupEntries may fail with isDoesNotExistError on Linux due to
+-- this bug in glibc:
+-- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466647
+--
getAllGroupEntries :: IO [GroupEntry]
#ifdef HAVE_GETGRENT
getAllGroupEntries =
diff --git a/tests/all.T b/tests/all.T
index a66f52a..eb94d7d 100644
--- a/tests/all.T
+++ b/tests/all.T
@@ -10,6 +10,11 @@ test('fileexist01', conf, compile_and_run, ['-package unix'])
test('forkprocess01', compose(only_compiler_types(['ghc']),
compose(expect_fail_for(['threaded2']), conf)),
compile_and_run, ['-package unix'])
+
+#
+# user001 may fail due to this bug in glibc:
+# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466647
+#
test('user001', conf, compile_and_run, ['-package unix'])
test('resourceLimit', conf, compile_and_run, ['-package unix'])