diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2006-10-22 08:24:24 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2006-10-22 08:24:24 (GMT) |
commit | fdd56729be8ce04f15dd573557a53c1719eb7ea8 (patch) | |
tree | c81d20f7fc7cc0b6648533c9ee8064cc0730746f /c++/test/testhdf5.cpp | |
parent | daa61b598616713bd39d360aeb9dbbd7ec5803cb (diff) | |
download | hdf5-fdd56729be8ce04f15dd573557a53c1719eb7ea8.zip hdf5-fdd56729be8ce04f15dd573557a53c1719eb7ea8.tar.gz hdf5-fdd56729be8ce04f15dd573557a53c1719eb7ea8.tar.bz2 |
[svn-r12796] Purpose: Adding test
Description:
Wrappers of H5Rcreate had incorrect prototypes. Fixed and added
object reference tests.
Platform tested:
Linux 2.4 (heping)
AIX 5.1 (copper)
SunOS 5.8 64-bit (sol)
Diffstat (limited to 'c++/test/testhdf5.cpp')
-rw-r--r-- | c++/test/testhdf5.cpp | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/c++/test/testhdf5.cpp b/c++/test/testhdf5.cpp index 1951a99..04f00a8 100644 --- a/c++/test/testhdf5.cpp +++ b/c++/test/testhdf5.cpp @@ -42,8 +42,22 @@ ***************************************************************************/ -#include "testhdf5.h" // C test header file -#include "H5Cpp.h" // C++ API header file +#ifdef OLD_HEADER_FILENAME +#include <iostream.h> +#else +#include <iostream> +#endif +#include <string> + +#ifndef H5_NO_NAMESPACE +#ifndef H5_NO_STD + using std::cerr; + using std::endl; +#endif // H5_NO_STD +#endif + +#include "testhdf5.h" // C test header file +#include "H5Cpp.h" // C++ API header file #ifndef H5_NO_NAMESPACE using namespace H5; @@ -61,10 +75,11 @@ main(int argc, char *argv[]) AddTest("h5s", test_h5s, cleanup_h5s, "Dataspaces", NULL); // testing attribute functionalities in tattr.cpp AddTest("attr", test_attr, cleanup_attr, "Attributes", NULL); + // testing reference functionalities in trefer.cpp + AddTest("reference", test_reference, cleanup_reference, "References", NULL); /* Comment out tests that are not done yet. - BMR, Feb 2001 AddTest("select", test_select, cleanup_select, "Selections", NULL); AddTest("time", test_time, cleanup_time, "Time Datatypes", NULL); - AddTest("reference", test_reference, cleanup_reference, "References", NULL); AddTest("vltypes", test_vltypes, cleanup_vltypes, "Variable-Length Datatypes", NULL); AddTest("vlstrings", test_vlstrings, cleanup_vlstrings, "Variable-Length Strings", NULL); AddTest("iterate", test_iterate, cleanup_iterate, "Group & Attribute Iteration", NULL); |