summaryrefslogtreecommitdiffstats
path: root/c++/test
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2014-04-25 19:47:57 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2014-04-25 19:47:57 (GMT)
commit97525f97f2db83b22193cac7c4641135cf6eebf4 (patch)
tree194fcf15a51b1ec0c4d6da1306877f0d515f6c29 /c++/test
parent01de7491b24bbd164865f0b1c9fa636c312ff570 (diff)
downloadhdf5-97525f97f2db83b22193cac7c4641135cf6eebf4.zip
hdf5-97525f97f2db83b22193cac7c4641135cf6eebf4.tar.gz
hdf5-97525f97f2db83b22193cac7c4641135cf6eebf4.tar.bz2
[svn-r25108] 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 e7a28de..dcfb644 100644
--- a/c++/test/trefer.cpp
+++ b/c++/test/trefer.cpp
@@ -321,6 +321,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 {