summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-03-19 14:11:40 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-03-19 14:11:40 (GMT)
commit5463c0a62bb74405ba7dd2055878f75a77b7e605 (patch)
tree4468d8978c9a3ca4fece5e04dbab33adcea9d6b1
parent821104ae47509a74ac7e892ceac48f359fcce249 (diff)
downloadhdf5-5463c0a62bb74405ba7dd2055878f75a77b7e605.zip
hdf5-5463c0a62bb74405ba7dd2055878f75a77b7e605.tar.gz
hdf5-5463c0a62bb74405ba7dd2055878f75a77b7e605.tar.bz2
[svn-r10236] Purpose: Added a util wrapper
Description: Added function IncTestNumErrs to increment the number of errors that is defined in testframe.c Platforms tested: Linux 2.4 (heping) AIX 5.1 (copper)
-rw-r--r--test/h5test.h1
-rw-r--r--test/testframe.c9
2 files changed, 10 insertions, 0 deletions
diff --git a/test/h5test.h b/test/h5test.h
index ac73506..00d3367 100644
--- a/test/h5test.h
+++ b/test/h5test.h
@@ -135,6 +135,7 @@ H5TEST_DLL int GetTestSummary(void);
H5TEST_DLL int GetTestCleanup(void);
H5TEST_DLL void ParseTestVerbosity(char *argv);
H5TEST_DLL int GetTestNumErrs(void);
+H5TEST_DLL void IncTestNumErrs(void);
H5TEST_DLL const void *GetTestParameters(void);
H5TEST_DLL int TestErrPrintf(const char *format, ...);
H5TEST_DLL void SetTest(const char *testname, int action);
diff --git a/test/testframe.c b/test/testframe.c
index bebc612..28e90ca 100644
--- a/test/testframe.c
+++ b/test/testframe.c
@@ -417,6 +417,15 @@ int GetTestNumErrs(void)
/*
+ * Increment the number of testing errors
+ */
+void IncTestNumErrs(void)
+{
+ num_errs++;
+}
+
+
+/*
* Retrieve the current Test Parameters pointer.
*/
const void *GetTestParameters(void)