diff options
author | def <dennis@felsin9.de> | 2015-03-10 15:34:15 +0100 |
---|---|---|
committer | def <dennis@felsin9.de> | 2015-03-10 15:34:15 +0100 |
commit | 69e2b61c0a990452045d2157c095edfe9225a59b (patch) | |
tree | de5814a76975912381ad5385f0d4bdefae5c675f /tests/stdlib | |
parent | 573fa9b8919d5ea5bcae8aaf7b7295c42526b6e4 (diff) | |
download | Nim-69e2b61c0a990452045d2157c095edfe9225a59b.tar.gz |
Fix tests a bit more
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/tgetfileinfo.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/stdlib/tgetfileinfo.nim b/tests/stdlib/tgetfileinfo.nim index c8e496cc1..8a0538a5f 100644 --- a/tests/stdlib/tgetfileinfo.nim +++ b/tests/stdlib/tgetfileinfo.nim @@ -65,13 +65,13 @@ proc testGetFileInfo = try: discard getFileInfo(testFile) #echo("Handle : Valid File : Success") - except EIO: + except IOError: echo("Handle : Valid File : Failure") try: discard getFileInfo(testHandle) #echo("Handle : Valid File : Success") - except EIO: + except IOError: echo("Handle : Valid File : Failure") # Case 6 and 8 @@ -82,14 +82,14 @@ proc testGetFileInfo = try: discard getFileInfo(testFile) echo("Handle : Invalid File : Failure") - except EIO, EOS: + except IOError, OSError: discard #echo("Handle : Invalid File : Success") try: discard getFileInfo(testHandle) echo("Handle : Invalid File : Failure") - except EIO, EOS: + except IOError, OSError: discard #echo("Handle : Invalid File : Success") |