diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2007-03-17 16:26:53 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2007-03-17 16:26:53 (GMT) |
commit | 1c4e6d163f781003ce1151781b3d403dc9b52e66 (patch) | |
tree | b07834021d14510d51e90736877fd938c1a9d904 /c++/test/trefer.cpp | |
parent | c4bbce8be19cd60e7ffd0180194c0e0e92091381 (diff) | |
download | hdf5-1c4e6d163f781003ce1151781b3d403dc9b52e66.zip hdf5-1c4e6d163f781003ce1151781b3d403dc9b52e66.tar.gz hdf5-1c4e6d163f781003ce1151781b3d403dc9b52e66.tar.bz2 |
[svn-r13524] Purpose: Cleanup tests
Description:
Added extern "C" to cleanup functions as well, forgot last time.
Cleaned up/Added comments to some of the newly added tests.
Platforms tested
AIX 5.1 (copper)
Linux 2.6 (kagiso)
SunOS 5.8 64-bit (sol)
Diffstat (limited to 'c++/test/trefer.cpp')
-rw-r--r-- | c++/test/trefer.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/c++/test/trefer.cpp b/c++/test/trefer.cpp index edcd968..71498ce 100644 --- a/c++/test/trefer.cpp +++ b/c++/test/trefer.cpp @@ -84,14 +84,13 @@ typedef struct s1_t { ** Tests references to various kinds of objects ** ****************************************************************/ -static void -test_reference_obj(void) +static void test_reference_obj() { int i; // counting variables const H5std_string write_comment="Foo!"; // Comments for group // Output message about test being performed - MESSAGE(5, ("Testing Object Reference Functions\n")); + SUBTEST("Testing Object Reference Functions"); H5File* file1 = NULL; try { @@ -266,9 +265,11 @@ test_reference_obj(void) free(wbuf); free(rbuf); free(tbuf); + + PASSED(); } // end try catch (Exception E) { - issue_fail_msg(E.getCFuncName(), __LINE__, __FILE__, E.getCDetailMsg()); + issue_fail_msg("test_reference_obj()", __LINE__, __FILE__, E.getCDetailMsg()); } } // test_reference_obj() @@ -280,7 +281,7 @@ test_reference_obj(void) #ifdef __cplusplus extern "C" #endif -void test_reference(void) +void test_reference() { // Output message about test being performed MESSAGE(5, ("Testing References\n")); @@ -295,9 +296,11 @@ void test_reference(void) ** Purpose: Cleanup temporary test files ** Return: none ****************************************************************/ -void -cleanup_reference(void) +#ifdef __cplusplus +extern "C" +#endif +void cleanup_reference() { - remove(FILE1.c_str()); + HDremove(FILE1.c_str()); } |