summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-01-30 21:10:38 +0000
committerIan Lynagh <igloo@earth.li>2012-01-30 21:10:38 +0000
commit777dff2e1b7d3f6b931bfeab8843db793d92afee (patch)
tree1bbee57baca57c2f4b742968e195e3f029790f59
parent0b395e150f67e94f36e242069d8e47825d18df9b (diff)
downloadhaskell-777dff2e1b7d3f6b931bfeab8843db793d92afee.tar.gz
Make posix003 a little more portable
On OS X, /tmp is a symlink to /private/tmp, so the test prints the wrong output. I've changed it to use /dev instead, which is hopefully less likely to be a symlink.
-rw-r--r--testsuite/tests/lib/libposix/posix003.hs2
-rw-r--r--testsuite/tests/lib/libposix/posix003.stdout2
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/lib/libposix/posix003.hs b/testsuite/tests/lib/libposix/posix003.hs
index 12984501ff..b28f9f7dbf 100644
--- a/testsuite/tests/lib/libposix/posix003.hs
+++ b/testsuite/tests/lib/libposix/posix003.hs
@@ -6,7 +6,7 @@ import System.IO
import System.Process
main = do hw <- openFile "po003.out" WriteMode
- ph <- runProcess "pwd" [] (Just "/tmp") Nothing Nothing (Just hw) Nothing
+ ph <- runProcess "pwd" [] (Just "/dev") Nothing Nothing (Just hw) Nothing
ec <- waitForProcess ph
hClose hw
unless (ec == ExitSuccess) $ error "pwd failed"
diff --git a/testsuite/tests/lib/libposix/posix003.stdout b/testsuite/tests/lib/libposix/posix003.stdout
index 0bef00a432..5206ef3c22 100644
--- a/testsuite/tests/lib/libposix/posix003.stdout
+++ b/testsuite/tests/lib/libposix/posix003.stdout
@@ -1 +1 @@
-Got: "/tmp"
+Got: "/dev"