Skip to content

Commit c8fcacb

Browse files
committed
test_deflate: check that MPI-2 doesn't signal defalte
1 parent 74473ff commit c8fcacb

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/tests/unit/test_deflate.f90

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ program test_deflate
4141

4242
if(mpi_id==0) then
4343
call test_get_deflate(fn1)
44-
!! quirk in HDF5? only works with mpi=.false.
45-
!! else get file close error
44+
!! only works with mpi=.false. else get file close error
4645
print *, 'OK: HDF5 get deflate'
4746
endif
4847

@@ -132,7 +131,7 @@ subroutine test_read_deflate_props(fn, N)
132131
if (has_parallel_compression()) then
133132
if(crat < MIN_COMP) error stop '2D low compression'
134133
else
135-
print *, "MPI commpression was disabled, so " // fn // " was not compressed."
134+
print *, "test_read_deflate_props: MPI commpression was disabled, so " // fn // " was not compressed."
136135
endif
137136
endif
138137

@@ -210,7 +209,7 @@ subroutine test_deflate_whole(fn, N)
210209
if (h5f%parallel_compression) then
211210
if(crat < MIN_COMP) error stop fn // ' low compression'
212211
else
213-
print *, "MPI commpression was disabled, so " // fn // " was not compressed."
212+
print *, "test_deflate_whole: MPI commpression was disabled, so " // fn // " was not compressed."
214213
endif
215214
endif
216215

@@ -265,7 +264,7 @@ subroutine test_deflate_slice(fn, N)
265264
if (h5f%parallel_compression) then
266265
if(crat < MIN_COMP) error stop fn // ' low compression'
267266
else
268-
print *, "MPI commpression was disabled, so " // fn // " was not compressed."
267+
print *, "test_deflate_slice: MPI commpression was disabled, so " // fn // " was not compressed."
269268
endif
270269
endif
271270

@@ -282,9 +281,9 @@ subroutine test_get_deflate(fn)
282281
!! bug in HDF5? only works with MPI=.false.
283282

284283
if (h5f%parallel_compression) then
285-
if (.not. h5f%deflate("/A")) error stop "expected deflate MPI"
284+
if (.not. h5f%deflate("/A")) error stop "test_get_deflate: expected deflate MPI"
286285
else
287-
write(stderr,'(a)') "MPI compression was disabled, so " // fn // " was not compressed."
286+
if (h5f%deflate("/A")) error stop "test_get_deflate: expected no deflate MPI"
288287
endif
289288

290289
if (.not. h5f%deflate("/noMPI")) error stop "expected deflate as dataset was written without MPI"

0 commit comments

Comments
 (0)