summaryrefslogtreecommitdiffstats
path: root/test/ttsafe_error.c
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2006-08-27 21:09:31 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2006-08-27 21:09:31 (GMT)
commit0265f1ca117cfeaea885f4619a2ad981dd92c9a0 (patch)
treeca77186619e226fc9fe662b5cfde7efb286b4f01 /test/ttsafe_error.c
parentf49a8d1afca48329120460f5092bcb3c37f773b0 (diff)
downloadhdf5-0265f1ca117cfeaea885f4619a2ad981dd92c9a0.zip
hdf5-0265f1ca117cfeaea885f4619a2ad981dd92c9a0.tar.gz
hdf5-0265f1ca117cfeaea885f4619a2ad981dd92c9a0.tar.bz2
[svn-r12632] Description:
Thread safe error test fails due to the changes in the error stack. Solution: Updated the expected error stack. Platforms tested: heping (too minor, probably will fail on Tuesday anyway)
Diffstat (limited to 'test/ttsafe_error.c')
-rw-r--r--test/ttsafe_error.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/ttsafe_error.c b/test/ttsafe_error.c
index 9a7b239..f3b1f79 100644
--- a/test/ttsafe_error.c
+++ b/test/ttsafe_error.c
@@ -46,7 +46,7 @@
#ifdef H5_HAVE_THREADSAFE
-#define NUM_THREAD 16
+#define NUM_THREAD 16
#define FILENAME "ttsafe_error.h5"
/* Having a common dataset name is an error */
@@ -81,20 +81,20 @@ void tts_error(void)
int ret;
/* Must initialize these at runtime */
- expected[0].maj_num = H5E_LINK;
+ expected[0].maj_num = H5E_DATASET;
expected[0].min_num = H5E_CANTINIT;
- expected[1].maj_num = H5E_LINK;
- expected[1].min_num = H5E_CANTINIT;
+ expected[1].maj_num = H5E_SYM;
+ expected[1].min_num = H5E_EXISTS;
expected[2].maj_num = H5E_SYM;
- expected[2].min_num = H5E_CANTINSERT;
+ expected[2].min_num = H5E_NOTFOUND;
expected[3].maj_num = H5E_SYM;
- expected[3].min_num = H5E_NOTFOUND;
+ expected[3].min_num = H5E_CALLBACK;
expected[4].maj_num = H5E_SYM;
- expected[4].min_num = H5E_CALLBACK;
+ expected[4].min_num = H5E_EXISTS;
expected[5].maj_num = H5E_SYM;
expected[5].min_num = H5E_EXISTS;
@@ -165,10 +165,10 @@ void *tts_error_thread(void UNUSED *arg)
int ret;
/* preserve previous error stack handler */
- H5Eget_auto_stack(H5E_DEFAULT, &old_error_cb, &old_error_client_data);
+ H5Eget_auto_stack(H5E_DEFAULT, &old_error_cb, &old_error_client_data);
/* set each thread's error stack handler */
- H5Eset_auto_stack(H5E_DEFAULT, error_callback, NULL);
+ H5Eset_auto_stack(H5E_DEFAULT, error_callback, NULL);
/* define dataspace for dataset */
dimsf[0] = 1;