diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2013-03-29 04:03:20 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2013-03-29 04:03:20 (GMT) |
commit | 8461df0911aecf6665b4a19d4a66e4d11bc31e3c (patch) | |
tree | 7c732c6dd13fbb1b64c57b2753459760d2f7191e /c++/test/th5s.cpp | |
parent | 54319cf88d1fece145a47960452ace57f3487f8f (diff) | |
download | hdf5-8461df0911aecf6665b4a19d4a66e4d11bc31e3c.zip hdf5-8461df0911aecf6665b4a19d4a66e4d11bc31e3c.tar.gz hdf5-8461df0911aecf6665b4a19d4a66e4d11bc31e3c.tar.bz2 |
[svn-r23485] Purpose: Fix bug HDFFV-8067
Description:
Applied the fix for HDFFV-8067 and the minor cleanups from the trunk.
Platforms tested:
Linux/32 2.6 (jam) with PGI compilers
Linux/32 2.6 (jam) with GNU compilers
Linux/64 2.6 (koala) with ICC compilers
SunOS 5.10 (emu)
Diffstat (limited to 'c++/test/th5s.cpp')
-rw-r--r-- | c++/test/th5s.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/c++/test/th5s.cpp b/c++/test/th5s.cpp index e6ed440..7947a9b 100644 --- a/c++/test/th5s.cpp +++ b/c++/test/th5s.cpp @@ -188,13 +188,7 @@ static void test_h5s_basic() * If this test fails and the H5S_MAX_RANK variable has changed, follow * the instructions in space_overflow.c for regenating the th5s.h5 file. */ - char testfile[512]=""; - char *srcdir = getenv("srcdir"); - if (srcdir && ((strlen(srcdir) + strlen(TESTFILE.c_str()) + 1) < sizeof(testfile))){ - strcpy(testfile, srcdir); - strcat(testfile, "/"); - } - strcat(testfile, TESTFILE.c_str()); + const char *testfile = H5_get_srcdir_filename(TESTFILE.c_str()); // Create file H5File fid1(testfile, H5F_ACC_RDONLY); @@ -575,7 +569,6 @@ extern "C" void test_h5s() { // Output message about test being performed - //MESSAGE("Testing Dataspaces\n"); MESSAGE(5, ("Testing Dataspaces\n")); test_h5s_basic(); // Test basic H5S code |