From 5463c0a62bb74405ba7dd2055878f75a77b7e605 Mon Sep 17 00:00:00 2001 From: Binh-Minh Ribler Date: Sat, 19 Mar 2005 09:11:40 -0500 Subject: [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) --- test/h5test.h | 1 + test/testframe.c | 9 +++++++++ 2 files changed, 10 insertions(+) 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) -- cgit v0.12