summaryrefslogtreecommitdiffstats
path: root/test/testfiles
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2010-10-12 16:45:36 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2010-10-12 16:45:36 (GMT)
commit98c90bd9cd572616b3335746d4aaf5045f55dfe4 (patch)
treeacb82bccac043aab98bf429e76052c79ef0b2900 /test/testfiles
parent09d549d0e9b20f592b5fb3708380aa74ca0084cc (diff)
downloadhdf5-98c90bd9cd572616b3335746d4aaf5045f55dfe4.zip
hdf5-98c90bd9cd572616b3335746d4aaf5045f55dfe4.tar.gz
hdf5-98c90bd9cd572616b3335746d4aaf5045f55dfe4.tar.bz2
[svn-r19583] Bug fix for 1707 - H5Eset_auto causes a seg fault when an application uses -DH5_USE_16_API
with the 1.8 library to compile. The cause is from the mismatch of H5Eprint1 and H5Eprint2 set through H5Eset_auto. I changed the structure H5E_auto_t. I added a IS_DEDAULT flag in it. Both H5Eprint1/2 are the default now. If the user sets his/her own printing function. Then a call to H5Eget_auto1/2 will have to match H5Eset_auto1/2. Tested on heiwa, jam, and amani. The property change in configure.in, config, tools/misc, tools/lib, c++/test, fortran, and Makefile.am came from the merge of the trunk library change. --This line, and th se below, will be ignored-- _M . M test/testerror.sh.in M test/err_compat.c M test/testfiles/err_compat_1 _M configure.in M src/H5Epkg.h M src/H5E.c M src/H5Eint.c M src/H5Edeprec.c _M tools/misc _M tools/lib _M config _M c++/test _M Makefile.am _M fortran
Diffstat (limited to 'test/testfiles')
-rw-r--r--test/testfiles/err_compat_140
1 files changed, 38 insertions, 2 deletions
diff --git a/test/testfiles/err_compat_1 b/test/testfiles/err_compat_1
index 032e7bc..e2b37ab 100644
--- a/test/testfiles/err_compat_1
+++ b/test/testfiles/err_compat_1
@@ -1,7 +1,7 @@
#############################
Expected output for err_compat
#############################
-Testing error API based on data I/O All error API tests passed.
+Testing error API H5Eset/get_auto Testing error API based on data I/O All error API tests passed.
This program tests the Error API compatible with HDF5 version (number). There're supposed to be some error messages
********* Print error stack in HDF5 default way *********
HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs):
@@ -15,10 +15,46 @@ HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs):
minor: Bad value
HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs):
+ #000: (file name) line (number) in H5Dcreate2(): not a location ID
+ major: Invalid arguments to routine
+ minor: Inappropriate type
+ #001: (file name) line (number) in H5G_loc(): invalid object ID
+ major: Invalid arguments to routine
+ minor: Bad value
+
+********* Print error stack in customized way *********
+ error #000: (file name) in H5G_loc(): line (number)
+ major: Invalid arguments to routine
+ minor: Bad value
+ error #001: (file name) in H5Dcreate2(): line (number)
+ major: Invalid arguments to routine
+ minor: Inappropriate type
+
+********* Print error stack in customized way *********
+ error #000: (file name) in H5Eget_auto(1 or 2)(): line (number)
+ major: Error API
+ minor: Can't get value
+
+********* Print error stack in customized way *********
+ error #000: (file name) in H5G_loc(): line (number)
+ major: Invalid arguments to routine
+ minor: Bad value
+ error #001: (file name) in H5Dcreate2(): line (number)
+ major: Invalid arguments to routine
+ minor: Inappropriate type
+HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs):
+ #000: (file name) line (number) in H5Dcreate2(): not a location ID
+ major: Invalid arguments to routine
+ minor: Inappropriate type
+ #001: (file name) line (number) in H5G_loc(): invalid object ID
+ major: Invalid arguments to routine
+ minor: Bad value
+
+HDF5-DIAG: Error detected in HDF5 (version (number)) thread (IDs):
#000: (file name) line (number) in main(): Error test failed
major: Error API
minor: Unrecognized message
- #001: (file name) line (number) in test_error(): H5Dwrite shouldn't succeed
+ #001: (file name) line (number) in test_error2(): H5Dwrite shouldn't succeed
major: Error API
minor: Write failed
#002: (file name) line (number) in H5Dwrite(): not a dataset