summaryrefslogtreecommitdiffstats
path: root/c++/test/tcompound.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2014-04-12 02:47:07 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2014-04-12 02:47:07 (GMT)
commitf61bc97180e88c6081c7cc9a420b7e9540bfd1a0 (patch)
tree272d6803208c796132836d4fb22cebfa09f8da88 /c++/test/tcompound.cpp
parentadff7e81bd0013af6f2e468e1eb0b9622897ab20 (diff)
downloadhdf5-f61bc97180e88c6081c7cc9a420b7e9540bfd1a0.zip
hdf5-f61bc97180e88c6081c7cc9a420b7e9540bfd1a0.tar.gz
hdf5-f61bc97180e88c6081c7cc9a420b7e9540bfd1a0.tar.bz2
[svn-r25023] Description:
- Added wrappers to H5Object for H5Iget_name() to get object's name ssize_t getObjName(char *obj_name, size_t buf_size = 0) const; ssize_t getObjName(H5std_string& obj_name, size_t len = 0) const; H5std_string getObjName() const; - Added tests tobject.cpp - Added to various cleanup_* functions in tests to remove generated files - Added an overload H5I_type_t getHDFObjType() to get object's type (merge from trunk-24969) Platforms tested: Linux/ppc64 (ostrich) Linux/32 2.6 (jam) SunOS 5.11 (emu) with gmake
Diffstat (limited to 'c++/test/tcompound.cpp')
-rw-r--r--c++/test/tcompound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/test/tcompound.cpp b/c++/test/tcompound.cpp
index 14bcd42..d8e381b 100644
--- a/c++/test/tcompound.cpp
+++ b/c++/test/tcompound.cpp
@@ -742,13 +742,12 @@ cerr << "test_compound_7 in catch" << endl;
*
*-------------------------------------------------------------------------
*/
-#define COMPFILE "tcompound_types.h5"
+const H5std_string COMPFILE("tcompound_types.h5");
static void test_compound_set_size()
{
typedef struct {
int a, b, c[4], d, e;
} src_typ_t;
- src_typ_t *s_ptr;
// Output message about test being performed
SUBTEST("Setting Size on Compound Datatype");
@@ -868,4 +867,5 @@ extern "C"
#endif
void cleanup_compound()
{
+ HDremove(COMPFILE.c_str());
} // cleanup_file