summaryrefslogtreecommitdiffstats
path: root/test/ttsafe_error.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-13 20:53:35 (GMT)
commit6b45f5172ccb4311e0be9ae15da3758abb6b0e67 (patch)
tree5a7a112fe7a8a98c6fecb45b513789d15962eb3d /test/ttsafe_error.c
parent6562465a2c2a58cfbc2f47bf60bb538f7a783933 (diff)
downloadhdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.zip
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.gz
hdf5-6b45f5172ccb4311e0be9ae15da3758abb6b0e67.tar.bz2
[svn-r11245] Purpose:
Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'test/ttsafe_error.c')
-rw-r--r--test/ttsafe_error.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/ttsafe_error.c b/test/ttsafe_error.c
index 4e6c516..c000a73 100644
--- a/test/ttsafe_error.c
+++ b/test/ttsafe_error.c
@@ -66,7 +66,7 @@ typedef struct err_num_struct {
hid_t min_num;
} err_num_t;
-err_num_t expected[8];
+err_num_t expected[8];
int error_flag = 0;
int error_count = 0;
@@ -82,28 +82,28 @@ void tts_error(void)
/* Must initialize these at runtime */
expected[0].maj_num = H5E_DATASET;
expected[0].min_num = H5E_CANTINIT;
-
+
expected[1].maj_num = H5E_DATASET;
expected[1].min_num = H5E_CANTINIT;
-
+
expected[2].maj_num = H5E_SYM;
expected[2].min_num = H5E_EXISTS;
-
+
expected[3].maj_num = H5E_SYM;
expected[3].min_num = H5E_CANTINSERT;
-
+
expected[4].maj_num = H5E_SYM;
expected[4].min_num = H5E_CANTINSERT;
-
+
expected[5].maj_num = H5E_BTREE;
expected[5].min_num = H5E_CANTINIT;
-
+
expected[6].maj_num = H5E_BTREE;
expected[6].min_num = H5E_CANTINSERT;
expected[7].maj_num = H5E_SYM;
expected[7].min_num = H5E_CANTINSERT;
-
+
/* set up mutex for global count of errors */
pthread_mutex_init(&error_mutex, NULL);
@@ -201,7 +201,7 @@ herr_t walk_error_callback(unsigned n, const H5E_error_t *err_desc, void UNUSED
if (err_desc) {
maj_num = err_desc->maj_num;
min_num = err_desc->min_num;
-
+
if (n < EXPECTED_ERROR_DEPTH && maj_num == expected[n].maj_num &&
min_num == expected[n].min_num)
return SUCCEED;