From 777dff2e1b7d3f6b931bfeab8843db793d92afee Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 30 Jan 2012 21:10:38 +0000 Subject: 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. --- testsuite/tests/lib/libposix/posix003.hs | 2 +- testsuite/tests/lib/libposix/posix003.stdout | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuite/tests/lib') 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" -- cgit v1.2.1