summaryrefslogtreecommitdiffstats
path: root/fortran/test/fortranlib_test.f90
diff options
context:
space:
mode:
Diffstat (limited to 'fortran/test/fortranlib_test.f90')
-rw-r--r--fortran/test/fortranlib_test.f904
1 files changed, 4 insertions, 0 deletions
diff --git a/fortran/test/fortranlib_test.f90 b/fortran/test/fortranlib_test.f90
index 41398b7..d90fcba 100644
--- a/fortran/test/fortranlib_test.f90
+++ b/fortran/test/fortranlib_test.f90
@@ -276,6 +276,10 @@
CALL h5close_f(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 fortranlibtest