summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-01-10 13:17:03 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-01-10 13:17:03 (GMT)
commit0c3c4a158a20c3f4869c537633495ee477474437 (patch)
tree3de16d89f802f8a83876be5c14d1bc84b14345de
parent98f01e2df2b407bfae2cd24fe4f03e184712eb75 (diff)
downloadhdf5-0c3c4a158a20c3f4869c537633495ee477474437.zip
hdf5-0c3c4a158a20c3f4869c537633495ee477474437.tar.gz
hdf5-0c3c4a158a20c3f4869c537633495ee477474437.tar.bz2
[svn-r6263] Purpose:
Update test Description: Some of the performance improvements changed the errors that are reported for creating a duplicated dataset in a file, causing this test's hard-coded errors to check for to fail. Solution: Updated error stack reported for dataset creation failure. Platforms tested: FreeBSD 4.7 (sleipnir) w/threads
-rw-r--r--test/ttsafe_error.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/ttsafe_error.c b/test/ttsafe_error.c
index 485c6e5..54ffc4b 100644
--- a/test/ttsafe_error.c
+++ b/test/ttsafe_error.c
@@ -40,7 +40,7 @@ static int dummy; /* just to create a non-empty object file */
/* Having a common dataset name is an error */
#define DATASETNAME "commonname"
-#define EXPECTED_ERROR_DEPTH 3
+#define EXPECTED_ERROR_DEPTH 8
#define WRITE_NUMBER 37
static herr_t error_callback(void *);
@@ -58,7 +58,12 @@ typedef struct err_num_struct {
err_num_t expected[] = {
{H5E_DATASET, H5E_CANTINIT},
{H5E_DATASET, H5E_CANTINIT},
- {H5E_SYM, H5E_EXISTS}
+ {H5E_SYM, H5E_EXISTS},
+ {H5E_SYM, H5E_CANTINSERT},
+ {H5E_SYM, H5E_CANTINSERT},
+ {H5E_BTREE, H5E_CANTINIT},
+ {H5E_BTREE, H5E_CANTINSERT},
+ {H5E_SYM, H5E_CANTINSERT},
};
int error_flag = 0;