diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-01-31 04:03:36 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-01-31 04:03:36 (GMT) |
commit | 31a5ef7b2280fa31a6445b0cc04df3c3bcc0dc3b (patch) | |
tree | 0b72886f6e14ec715c5b940ea10bcd6ea308e940 /c++/test/h5cpputil.h | |
parent | d388057d0dcaeefc9f87ad32fbd13e17133fd818 (diff) | |
download | hdf5-31a5ef7b2280fa31a6445b0cc04df3c3bcc0dc3b.zip hdf5-31a5ef7b2280fa31a6445b0cc04df3c3bcc0dc3b.tar.gz hdf5-31a5ef7b2280fa31a6445b0cc04df3c3bcc0dc3b.tar.bz2 |
[svn-r9890] Purpose: Clean up tests
Description:
+ C tests' macro VERIFY casts values to 'long' for all cases. Since
there are no operator<< for 'long long' or int64 in VS C++ ostream,
I casted the hsize_t/hssize_t values passed to verify_val to 'long'
as well. If problems arise later, this may have to be specificly
handled with an overload - th5s.cpp
+ Added the use of InvalidActionException for when an action
should cause an exception but didn't - th5s.cpp and tfile.cpp
+ Small changes to improve failure reports
Platforms tested:
SunOS 5.7 (arabica)
Linux 2.4 (eirene)
Diffstat (limited to 'c++/test/h5cpputil.h')
-rw-r--r-- | c++/test/h5cpputil.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c++/test/h5cpputil.h b/c++/test/h5cpputil.h index df8f139..5caba61 100644 --- a/c++/test/h5cpputil.h +++ b/c++/test/h5cpputil.h @@ -38,7 +38,8 @@ using std::endl; int test_report (int, const string&); #endif -void issue_fail_msg(const char* where, int line, const char* file_name); +void issue_fail_msg(const char* where, int line, const char* file_name, + const char* message=""); template <class Type1, class Type2> void verify_val(Type1 x, Type2 value, const char* where, int line, const char* file_name) |