Skip to content

Commit

Permalink
test opening wrong file
Browse files Browse the repository at this point in the history
  • Loading branch information
alyst committed Dec 2, 2023
1 parent 3b9a2b2 commit 559c9e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ try
@test data == data3

# Test gzfdio
@test_throws "No such file or directory" gzopen("wrong_file.gz", "r")
@test_throws "Bad file descriptor" gzdopen("wrong_fd.gz", -1, "r", 1024)

raw_file = open(test_compressed, "r")
gzfile = gzdopen(fd(raw_file), "r")
data4 = read(gzfile, String)
Expand Down

0 comments on commit 559c9e8

Please sign in to comment.