summaryrefslogtreecommitdiffstats
path: root/test/ttsafe_error.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-01-10 01:41:34 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-01-10 01:41:34 (GMT)
commit7f6fbe6b604423782f6195b809a23c32d0bd1863 (patch)
treee8c77f2aec3dbc365983995305864e47c5119b18 /test/ttsafe_error.c
parentc891e4a01e575cec23d51b526fd792b57eab9d06 (diff)
downloadhdf5-7f6fbe6b604423782f6195b809a23c32d0bd1863.zip
hdf5-7f6fbe6b604423782f6195b809a23c32d0bd1863.tar.gz
hdf5-7f6fbe6b604423782f6195b809a23c32d0bd1863.tar.bz2
[svn-r8049] Purpose:
Code cleanup & reorganization Description: Move further in the testing framework cleanup, eliminating all the global variables (moving them into testframe.c as static variables) from the testing framework code and moving it into the libh5test.a. Platforms tested: FreeBSD 4.9 (sleipnir) w & w/o thread-safety, c++ & parallel h5committested
Diffstat (limited to 'test/ttsafe_error.c')
-rw-r--r--test/ttsafe_error.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/ttsafe_error.c b/test/ttsafe_error.c
index ba1a394..4b3444e 100644
--- a/test/ttsafe_error.c
+++ b/test/ttsafe_error.c
@@ -119,24 +119,20 @@ void tts_error(void)
pthread_join(threads[i],NULL);
if (error_flag) {
- fprintf(stderr, "Threads reporting different error values!\n");
- num_errs++;
+ TestErrPrintf("Threads reporting different error values!\n");
}
if (error_count != NUM_THREAD - 1) {
- fprintf(stderr, "Error: %d threads failed instead of %d\n",
+ TestErrPrintf("Error: %d threads failed instead of %d\n",
error_count, NUM_THREAD-1);
- num_errs++;
}
dataset = H5Dopen(error_file, DATASETNAME);
H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, &value);
if (value != WRITE_NUMBER) {
- fprintf(stderr,
- "Error: Successful thread wrote value %d instead of %d\n",
+ TestErrPrintf("Error: Successful thread wrote value %d instead of %d\n",
value, WRITE_NUMBER);
- num_errs++;
}
H5Dclose(dataset);