summaryrefslogtreecommitdiffstats
path: root/c++/test/h5cpputil.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2014-04-09 04:03:03 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2014-04-09 04:03:03 (GMT)
commit0dc4ce37046c373ca48ed5d186e3598d7b48ed35 (patch)
tree205b77bbf5f08909ec4ac2aad5164bd49e6b674e /c++/test/h5cpputil.h
parent5ae7ad342d42a9d6384edc3e465f57fa35ada5de (diff)
downloadhdf5-0dc4ce37046c373ca48ed5d186e3598d7b48ed35.zip
hdf5-0dc4ce37046c373ca48ed5d186e3598d7b48ed35.tar.gz
hdf5-0dc4ce37046c373ca48ed5d186e3598d7b48ed35.tar.bz2
[svn-r24994] Purpose: Removed some warnings
Description: Turned on warnings and removed some of those. Platforms tested: Linux/ppc64 (ostrich) Linux/32 2.6 (jam) SunOS 5.11 (emu)
Diffstat (limited to 'c++/test/h5cpputil.h')
-rw-r--r--c++/test/h5cpputil.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/c++/test/h5cpputil.h b/c++/test/h5cpputil.h
index bea08d3..8625213 100644
--- a/c++/test/h5cpputil.h
+++ b/c++/test/h5cpputil.h
@@ -115,6 +115,19 @@ template <class Type1, class Type2>
}
}
+template <class Type1, class Type2>
+ void CHECK(Type1 x, Type2 value, const char* msg, int line, const char* file_name)
+{
+ if (x == value)
+ {
+ cerr << endl;
+ cerr << "*** Function " << msg << " FAILED at line " << line << endl;
+ IncTestNumErrs();
+ throw TestFailedException(file_name, msg);
+ }
+}
+
+
/* Prototypes for the test routines */
#ifdef __cplusplus
extern "C" {