diff options
author | Ian Lynagh <igloo@earth.li> | 2012-01-30 21:10:38 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2012-01-30 21:10:38 +0000 |
commit | 777dff2e1b7d3f6b931bfeab8843db793d92afee (patch) | |
tree | 1bbee57baca57c2f4b742968e195e3f029790f59 /testsuite/tests/lib | |
parent | 0b395e150f67e94f36e242069d8e47825d18df9b (diff) | |
download | haskell-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.
Diffstat (limited to 'testsuite/tests/lib')
-rw-r--r-- | testsuite/tests/lib/libposix/posix003.hs | 2 | ||||
-rw-r--r-- | testsuite/tests/lib/libposix/posix003.stdout | 2 |
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" |