Skip to content

Commit 8200541

Browse files
committed
changed informational message printing to error_unit in a unit test.
1 parent 67453d5 commit 8200541

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/tests/jf_test_14.f90

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
module jf_test_14_mod
88

99
use json_module
10-
use, intrinsic :: iso_fortran_env , only: error_unit, output_unit
10+
use, intrinsic :: iso_fortran_env , only: error_unit,output_unit
1111

1212
implicit none
1313

@@ -58,11 +58,11 @@ subroutine test_14(error_cnt)
5858
end if
5959

6060
if (error_cnt==0) then
61-
write(output_unit,'(A)') ''
62-
write(output_unit,'(A)') ' All names changed to Fred:'
63-
write(output_unit,'(A)') ''
61+
write(error_unit,'(A)') ''
62+
write(error_unit,'(A)') ' All names changed to Fred:'
63+
write(error_unit,'(A)') ''
6464
call json_print(json,output_unit)
65-
write(output_unit,'(A)') ''
65+
write(error_unit,'(A)') ''
6666
end if
6767

6868
call json_destroy(json) !clean up
@@ -91,7 +91,7 @@ subroutine rename(p,finished) !! change all "name" variable values to "Fred"
9191
if (var_type==json_string .and. str=='name') then
9292
call json_get(p,'@',str) ! get original name
9393
call json_update(p,'@','Fred',found) !change it
94-
write(output_unit,'(A)') str//' name changed'
94+
write(error_unit,'(A)') str//' name changed'
9595
icount = icount + 1
9696
end if
9797

0 commit comments

Comments
 (0)