Skip to content

Commit 938b7aa

Browse files
committed
Correct two minor bugs in the test suite:
- the printing size is sometime to small, making repeat() call with negative numbers. - the buffer when reading a file had dimension hard-coded.
1 parent beb9062 commit 938b7aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/etsf/template.tests_init

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ contains
2020
type(etsf_io_low_error), intent(in) :: error
2121

2222
if (lstat) then
23-
write(*, "(A,A,A,A)") "== ", name, repeat(" ", 68 - len(name)), "OK =="
23+
write(*, "(A,A,A,A)") "== ", name, repeat(" ", 78 - len(name)), "OK =="
2424
else
25-
write(*, "(A,A,A,A)") "== ", name, repeat(" ", 68 - len(name)), "Failed =="
25+
write(*, "(A,A,A,A)") "== ", name, repeat(" ", 78 - len(name)), "Failed =="
2626
call etsf_io_low_error_handle(error)
2727
end if
2828
end subroutine tests_write_status

tests/group_level/tests_module.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ subroutine check_read_nD(ncid, varname, type, dims, lstat, error_data)
8585
character(len = *), parameter :: me = "check_read_nD"
8686
integer, allocatable :: int_array(:)
8787
double precision, allocatable :: dbl_array(:)
88-
character(len = 256), allocatable :: strings(:)
88+
character(len = dims(1)), allocatable :: strings(:)
8989

9090
! Allocate temporary read space
9191
if (type == "integer") then

0 commit comments

Comments
 (0)