diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-01-09 06:19:16 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-01-09 06:19:16 (GMT) |
commit | c3e6571ea5f53ae37ef28aa74f7d6e48ca52e15f (patch) | |
tree | 9430da9b4448c5d92031fdcdb57c351511d7e0c3 /fortran/test/t.c | |
parent | d7f580b7cc80d53cfba366e2f7c3865d46833030 (diff) | |
download | hdf5-c3e6571ea5f53ae37ef28aa74f7d6e48ca52e15f.zip hdf5-c3e6571ea5f53ae37ef28aa74f7d6e48ca52e15f.tar.gz hdf5-c3e6571ea5f53ae37ef28aa74f7d6e48ca52e15f.tar.bz2 |
[svn-r9786] Purpose:
bug fix and document.
Description:
Unix and probably other systems too, has a small exit value range
such as 1 byte. So, exit(256) may end up the same as exit(1).
Added caution message to the exit wrappers and changed test programs
to exit(1) when errors detected.
Platforms tested:
tested in copper. verified here that exit(256) was treated just like
exit(0).
Diffstat (limited to 'fortran/test/t.c')
-rw-r--r-- | fortran/test/t.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fortran/test/t.c b/fortran/test/t.c index 0299869..3b51add 100644 --- a/fortran/test/t.c +++ b/fortran/test/t.c @@ -112,7 +112,10 @@ DONE: /*---------------------------------------------------------------------------- * Name: h5_exit_c - * Purpose: Call 'exit()' to terminate application + * Purpose: Call 'exit()' to terminate application. Be careful not to + * overflow the exit value range since UNIX supports a very + * small range such as 1 byte. Therefore, exit(256) may end + * up as exit(0). * Inputs: status - status for exit() to return * Returns: none * Programmer: Quincey Koziol |