summaryrefslogtreecommitdiff
path: root/ghc/tests
diff options
context:
space:
mode:
authorsimonmar <unknown>2001-08-08 10:36:59 +0000
committersimonmar <unknown>2001-08-08 10:36:59 +0000
commit1cc01adad4360ab1014b83ce933aec055d5d0e85 (patch)
treeabe0fca985e584f9f132c413c48f026c68b5863f /ghc/tests
parentc737f0f3c09a0fcf379a60d36b3f44f4b93dfae3 (diff)
downloadhaskell-1cc01adad4360ab1014b83ce933aec055d5d0e85.tar.gz
[project @ 2001-08-08 10:36:59 by simonmar]
update expected output
Diffstat (limited to 'ghc/tests')
-rw-r--r--ghc/tests/lib/IO/readFile001.stdout11
1 files changed, 6 insertions, 5 deletions
diff --git a/ghc/tests/lib/IO/readFile001.stdout b/ghc/tests/lib/IO/readFile001.stdout
index cd8caf6a15..9bb4f56e08 100644
--- a/ghc/tests/lib/IO/readFile001.stdout
+++ b/ghc/tests/lib/IO/readFile001.stdout
@@ -1,3 +1,7 @@
+Left resource busy
+Action: openFile
+Reason: file is locked
+File: readFile001.out
-- !!! readFile test
import IO
@@ -13,11 +17,8 @@ main = do
s <- readFile filename
-- This open should fail, because the readFile hasn't been forced
- -- and the file is therefore still locked. But GHC currently has a
- -- bug in that the openFile truncates the file before checking
- -- whether it was locked or not.
- -- r <- try (openFile filename WriteMode)
- -- print r
+ -- and the file is therefore still locked.
+ try (openFile filename WriteMode) >>= print
putStrLn s