summaryrefslogtreecommitdiffstats
path: root/c++/test
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2014-04-25 21:54:22 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2014-04-25 21:54:22 (GMT)
commit1a5d6e47d2ba566e29bfc157fffec67a4cd69983 (patch)
tree0694c83da70a7f105ff56b3ccf0f6d7a13782ba7 /c++/test
parent67641211a89b7244bc5e1d76438509b49ceac9dc (diff)
downloadhdf5-1a5d6e47d2ba566e29bfc157fffec67a4cd69983.zip
hdf5-1a5d6e47d2ba566e29bfc157fffec67a4cd69983.tar.gz
hdf5-1a5d6e47d2ba566e29bfc157fffec67a4cd69983.tar.bz2
[svn-r25116] Description:
- Put back Exception::printError for backward compatibility - Added static member function Exception::printErrorStack to print error stack without an instance of Exception. Platforms tested: Linux/ppc64 (ostrich) Linux/32 2.6 (jam) SunOS 5.11 (emu)
Diffstat (limited to 'c++/test')
-rw-r--r--c++/test/trefer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/c++/test/trefer.cpp b/c++/test/trefer.cpp
index d2581a3..c4ff9af 100644
--- a/c++/test/trefer.cpp
+++ b/c++/test/trefer.cpp
@@ -322,6 +322,10 @@ static void test_reference_obj(void)
H5std_string read_comment1 = group.getComment(".", 10);
verify_val(read_comment1.c_str(), write_comment, "Group::getComment",__LINE__,__FILE__);
+ // Test with the old default value
+ read_comment1 = group.getComment(".", 256);
+ verify_val(read_comment1.c_str(), write_comment, "Group::getComment",__LINE__,__FILE__);
+
// Test that getComment handles failures gracefully, using
// H5std_string getComment(const char* name, <buf_size=0 by default>)
try {