summaryrefslogtreecommitdiffstats
path: root/c++/test/dsets.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-03-20 04:01:25 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-03-20 04:01:25 (GMT)
commit99d26d20f83ab0ae3122b77a2efa2d617ba99769 (patch)
tree925f3dc655ad2e165bd5b4544340659551c310da /c++/test/dsets.cpp
parentfef46461796180cb5a920f42296969a6b8ab3564 (diff)
downloadhdf5-99d26d20f83ab0ae3122b77a2efa2d617ba99769.zip
hdf5-99d26d20f83ab0ae3122b77a2efa2d617ba99769.tar.gz
hdf5-99d26d20f83ab0ae3122b77a2efa2d617ba99769.tar.bz2
[svn-r10242] Purpose: Updating C++ tests
Description: Added an overloaded function for the template function verify_val. Updated various comments/headers. Platforms tested: Linux 2.4 (heping) AIX 5.1 (copper)
Diffstat (limited to 'c++/test/dsets.cpp')
-rw-r--r--c++/test/dsets.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/c++/test/dsets.cpp b/c++/test/dsets.cpp
index 40cbef7..36cfaa7 100644
--- a/c++/test/dsets.cpp
+++ b/c++/test/dsets.cpp
@@ -32,14 +32,14 @@
#include <iostream>
#endif
-#include "testhdf5.h"
-#include "H5Cpp.h"
+#include "testhdf5.h" // C test header file
+#include "H5Cpp.h" // C++ API header file
#ifndef H5_NO_NAMESPACE
using namespace H5;
#endif
-#include "h5cpputil.h"
+#include "h5cpputil.h" // C++ utilility header file
const string FILE1("dataset.h5");
const string DSET_DEFAULT_NAME("default");
@@ -98,9 +98,8 @@ test_create( H5File& file)
delete dataset;
// Try creating a dataset that already exists. This should fail since a
- // dataset can only be created once. If an exception is not thrown
- // for this action by createDataSet, then display failure information
- // and throw an exception.
+ // dataset can only be created once. If an exception is not thrown for
+ // this action by createDataSet, then throw an invalid action exception.
try {
dataset = new DataSet (file.createDataSet
(DSET_DEFAULT_NAME, PredType::NATIVE_DOUBLE, space));
@@ -202,7 +201,6 @@ check_values (hsize_t i, hsize_t j, int apoint, int acheck)
{
if (apoint != acheck)
{
- H5_FAILED();
cerr << " Read different values than written.\n" << endl;
cerr << " At index " << (unsigned long)i << "," <<
(unsigned long)j << endl;