Skip to content

Commit

Permalink
debug windows failures
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Sep 8, 2023
1 parent 6a9701d commit a486503
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,20 @@ using HDF5, Test
end == 1
@test names == ["a"]

# HDF5 error
@test_throws HDF5.API.H5Error HDF5.API.h5a_iterate(
f, HDF5.API.H5_INDEX_NAME, HDF5.API.H5_ITER_INC
) do loc, name, info
return -1
end

# Julia error
@test_throws AssertionError HDF5.API.h5a_iterate(
f, HDF5.API.H5_INDEX_NAME, HDF5.API.H5_ITER_INC
) do loc, name, info
@assert false
end

# HDF5 error
@test_throws HDF5.API.H5Error HDF5.API.h5a_iterate(
f, HDF5.API.H5_INDEX_NAME, HDF5.API.H5_ITER_INC
) do loc, name, info
return -1
end
end

@testset "h5l_iterate" begin
Expand Down

0 comments on commit a486503

Please sign in to comment.