summaryrefslogtreecommitdiffstats
path: root/test/ttsafe_acreate.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_acreate.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_acreate.c')
-rw-r--r--test/ttsafe_acreate.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/ttsafe_acreate.c b/test/ttsafe_acreate.c
index ac981b0..d5ed7b7 100644
--- a/test/ttsafe_acreate.c
+++ b/test/ttsafe_acreate.c
@@ -127,17 +127,14 @@ void tts_acreate(void)
attribute = H5Aopen_name(dataset,gen_name(i));
if (attribute < 0) {
- fprintf(stderr,
+ TestErrPrintf(
"unable to open appropriate attribute. "
"Test failed!\n");
- num_errs++;
} else {
ret = H5Aread(attribute, H5T_NATIVE_INT, &buffer);
if (ret < 0 || buffer != i) {
- fprintf(stderr,
- "wrong data values. Test failed!\n");
- num_errs++;
+ TestErrPrintf("wrong data values. Test failed!\n");
}
H5Aclose(attribute);