diff options
Diffstat (limited to 'fortran/test/fflush2.f90')
-rw-r--r-- | fortran/test/fflush2.f90 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fortran/test/fflush2.f90 b/fortran/test/fflush2.f90 index 41b94cb..bda9d07 100644 --- a/fortran/test/fflush2.f90 +++ b/fortran/test/fflush2.f90 @@ -177,4 +177,8 @@ CALL h5close_f(error) CALL check("h5close_types_f",error,total_error) + ! if errors detected, exit with non-zero code. This is not truly fortran + ! standard but likely supported by most fortran compilers. + IF (total_error .ne. 0) CALL exit (total_error) + END PROGRAM FFLUSH2EXAMPLE |