Skip to content

Commit 12e3e57

Browse files
committed
tests: allocate instead of stack to avoid test failure
1 parent 8b1a241 commit 12e3e57

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project('h5fortran', 'fortran',
22
meson_version : '>=0.52.0',
3-
version : '2.9.2',
3+
version : '2.9.3',
44
default_options : ['default_library=static', 'buildtype=release', 'warning_level=3'])
55

66
subdir('meson')

src/tests/test_deflate.f90

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,19 @@ program test_deflate
2424

2525
contains
2626

27-
recursive subroutine test_hdf5_deflate(path)
27+
subroutine test_hdf5_deflate(path)
2828
type(hdf5_file) :: h5f
2929
character(*), intent(in) :: path
3030
integer(hsize_t), parameter :: N=1000
3131
integer(hsize_t) :: crat, chunks(3)
3232
integer :: fsize, layout
3333

34-
integer :: ibig2(N,N), ibig3(N,N,4)
35-
real(real32) :: big2(N,N), big3(N,N,4)
34+
integer, allocatable :: ibig2(:,:), ibig3(:,:,:)
35+
real(real32), allocatable :: big2(:,:), big3(:,:,:)
3636
character(:), allocatable :: fn
3737

38+
allocate(ibig2(N,N), ibig3(N,N,4), big2(N,N), big3(N,N,4))
39+
3840
ibig2 = 0
3941
ibig3 = 0
4042
big2 = 0
@@ -115,4 +117,4 @@ recursive subroutine test_hdf5_deflate(path)
115117

116118
end subroutine test_hdf5_deflate
117119

118-
end program
120+
end program

0 commit comments

Comments
 (0)