summaryrefslogtreecommitdiffstats
path: root/c++/test/h5cpputil.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-01-31 04:03:36 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-01-31 04:03:36 (GMT)
commit31a5ef7b2280fa31a6445b0cc04df3c3bcc0dc3b (patch)
tree0b72886f6e14ec715c5b940ea10bcd6ea308e940 /c++/test/h5cpputil.cpp
parentd388057d0dcaeefc9f87ad32fbd13e17133fd818 (diff)
downloadhdf5-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.cpp')
-rw-r--r--c++/test/h5cpputil.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/c++/test/h5cpputil.cpp b/c++/test/h5cpputil.cpp
index 4f21c9a..d3f531b 100644
--- a/c++/test/h5cpputil.cpp
+++ b/c++/test/h5cpputil.cpp
@@ -94,12 +94,13 @@ int test_report( int nerrors, const string& testname )
*
*-------------------------------------------------------------------------
*/
-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)
{
if (GetTestVerbosity()>=VERBO_HI)
{
- cerr << " Call to routine: " << where << " at line " << line
- << " in " << file_name << "has failed" << endl;
+ cerr << "--> From " << where << " at line " << line
+ << " in " << file_name << " - " << message << endl << endl;
}
}