Skip to content

Commit

Permalink
cleanup test files
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Aug 6, 2022
1 parent 259763f commit 5d4fb16
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion test/chunkstorage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,4 @@ using Test
end == reshape(1:24, 4, 6)

rm(fn)
end # testset "Raw Chunk I/O"
end
2 changes: 1 addition & 1 deletion test/extend_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ using Test

close(fid)
rm(fn)
end # testset extend_test
end
2 changes: 1 addition & 1 deletion test/external.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ using Test
rm(fn1)
# rm(fn2)

end # testset external
end
4 changes: 2 additions & 2 deletions test/fileio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ end

@test all(keys(dat) .== ["b", "a", "G/z", "G/f"])
end
end # @testset track_order
end

@static if HDF5.API.h5_get_libversion() >= v"1.10.5"
@testset "h5f_get_dset_no_attrs_hint" begin
Expand All @@ -105,4 +105,4 @@ end # @testset track_order
end
@test filesize(fn) > threshold + 1
end
end # @static if HDF5.API.h5_get_libversion() >= v"1.10.5"
end
2 changes: 1 addition & 1 deletion test/filter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,4 @@ using HDF5.Filters: ExternalFilter, isavailable, isencoderenabled, isdecoderenab
@test isdecoderenabled(H5Z_FILTER_LZ4)
@test isencoderenabled(Lz4Filter)
@test isdecoderenabled(Lz4Filter)
end # @testset "filter"
end
2 changes: 1 addition & 1 deletion test/gc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ end
end

rm(fn)
end # testset gc
end
2 changes: 1 addition & 1 deletion test/mmap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ using Test
close(f)
# Restore complex support state
complex_support && HDF5.enable_complex_support()
end # testset
end
2 changes: 1 addition & 1 deletion test/mpio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ using Test
MPI.Barrier(MPI.COMM_WORLD)

MPI.Finalize()
end # testset mpio
end
16 changes: 8 additions & 8 deletions test/plain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ end
@test all(f["dataset"][:, :] .== 5)
end
rm(fn)
end # testset "Test h5d_fill
end

@testset "h5d_gather" begin
src_buf = rand(Int, (4, 4))
Expand Down Expand Up @@ -588,7 +588,7 @@ end
@test open(crc32c, fn1) == open(crc32c, fn2)
rm(fn1)
rm(fn2)
end # testset plain
end

@testset "complex" begin
HDF5.enable_complex_support()
Expand Down Expand Up @@ -668,7 +668,7 @@ end

close(f)
rm(fn)
end # testset null and undefined
end

# test writing abstract arrays
@testset "abstract arrays" begin
Expand Down Expand Up @@ -704,7 +704,7 @@ end # testset null and undefined
h5open(fn, "w"; alignment=(0, 8)) do fid
fid["x"] = zeros(10, 10)
end
end # writing abstract arrays
end

# issue #705
@testset "empty and 0-size arrays" begin
Expand Down Expand Up @@ -793,7 +793,7 @@ end # writing abstract arrays
@test String(take!(buf)) == "HDF5.EmptyArray{Int64}()"
show(buf, MIME"text/plain"(), HDF5.EmptyArray{Int64}())
@test String(take!(buf)) == "HDF5.EmptyArray{Int64}()"
end # empty and 0-size arrays
end

@testset "generic read of native types" begin
fn = tempname()
Expand Down Expand Up @@ -862,7 +862,7 @@ end # empty and 0-size arrays

close(hfile)
rm(fn)
end # generic read of native types
end

@testset "show" begin
fn = tempname()
Expand Down Expand Up @@ -1190,7 +1190,7 @@ end # generic read of native types
end

rm(fn)
end # show tests
end

@testset "split1" begin
@test HDF5.split1("/") == ("/", "")
Expand Down Expand Up @@ -1263,7 +1263,7 @@ end # split1 tests

close(hfile)
rm(fn)
end # haskey tests
end

@testset "AbstractString" begin
fn = GenericString(tempname())
Expand Down
2 changes: 1 addition & 1 deletion test/readremote.jl
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,4 @@ using LinearAlgebra: norm
A = read(fid, "DS1")
@test A == AA
close(fid)
end # testset readremote
end
2 changes: 1 addition & 1 deletion test/swmr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ end
if nprocs() > 1
rmprocs(procs)
end
end # testset swmr
end

0 comments on commit 5d4fb16

Please sign in to comment.