summaryrefslogtreecommitdiff
path: root/libraries/base/tests/IO/T2122.hs
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/base/tests/IO/T2122.hs')
-rw-r--r--libraries/base/tests/IO/T2122.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/tests/IO/T2122.hs b/libraries/base/tests/IO/T2122.hs
index 9a8badc216..488d2434bc 100644
--- a/libraries/base/tests/IO/T2122.hs
+++ b/libraries/base/tests/IO/T2122.hs
@@ -51,9 +51,9 @@ test causeFailure =
-- probably because openFd does not try to lock the file
test2 :: Bool -> IO ()
test2 causeFailure =
- do fd1 <- openFd fp ReadOnly Nothing defaultFileFlags `catchIOError` (\e -> error ("openFile 1: " ++ show e))
+ do fd1 <- openFd fp ReadOnly defaultFileFlags `catchIOError` (\e -> error ("openFile 1: " ++ show e))
when causeFailure $ do
- fd2 <- openFd fp ReadOnly Nothing defaultFileFlags `catchIOError` (\e -> error ("openFile 2: " ++ show e))
+ fd2 <- openFd fp ReadOnly defaultFileFlags `catchIOError` (\e -> error ("openFile 2: " ++ show e))
closeFd fd2
closeFd fd1
removeFile fp