From 21e2eece6559f3ac0918f6ad3dc1bcde0fd4c59e Mon Sep 17 00:00:00 2001
From: Ian Lynagh <igloo@earth.li>
Date: Mon, 30 Jan 2012 21:10:38 +0000
Subject: [PATCH] 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.
---
 tests/lib/libposix/posix003.hs     | 2 +-
 tests/lib/libposix/posix003.stdout | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/lib/libposix/posix003.hs b/tests/lib/libposix/posix003.hs
index 12984501f..b28f9f7db 100644
--- a/tests/lib/libposix/posix003.hs
+++ b/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/tests/lib/libposix/posix003.stdout b/tests/lib/libposix/posix003.stdout
index 0bef00a43..5206ef3c2 100644
--- a/tests/lib/libposix/posix003.stdout
+++ b/tests/lib/libposix/posix003.stdout
@@ -1 +1 @@
-Got: "/tmp"
+Got: "/dev"
-- 
GitLab