aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Simon Marlow <marlowsd@gmail.com>2010-03-29 11:26:46 +0000
committerGravatar Simon Marlow <marlowsd@gmail.com>2010-03-29 11:26:46 +0000
commit07ad49a59d2bf20fc8b4e835c42726c687e98380 (patch)
treee020507f3a0454ae4caaf415f4ee6727f34f10b8 /tests
parentd8aa9a0e1ff9a4b6e38311d854da9fa8b683a163 (diff)
add test for #3816
Diffstat (limited to 'tests')
-rw-r--r--tests/3816.hs4
-rw-r--r--tests/3816.stdout2
-rw-r--r--tests/all.T2
3 files changed, 8 insertions, 0 deletions
diff --git a/tests/3816.hs b/tests/3816.hs
new file mode 100644
index 0000000..cda272f
--- /dev/null
+++ b/tests/3816.hs
@@ -0,0 +1,4 @@
+import System.Posix
+main = do
+ getAllGroupEntries >>= print . (>0) . length
+ getAllGroupEntries >>= print . (>0) . length
diff --git a/tests/3816.stdout b/tests/3816.stdout
new file mode 100644
index 0000000..dbde422
--- /dev/null
+++ b/tests/3816.stdout
@@ -0,0 +1,2 @@
+True
+True
diff --git a/tests/all.T b/tests/all.T
index 1311d74..6b37edf 100644
--- a/tests/all.T
+++ b/tests/all.T
@@ -47,3 +47,5 @@ test('fileStatus',
test('1185', [ expect_fail_for(['threaded2']) ],
compile_and_run, ['-package unix'])
+
+test('3816', normal, compile_and_run, ['-package unix'])