From aaa8bba35443dd426d281f757eac3aae2e01b0e0 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Mon, 12 Feb 2007 11:15:13 -0500 Subject: [svn-r13278] The test case "complex group hierarchy" takes too long on copper when running with direct driver. Skip this test if direct driver is used and the express test mode is set on. --- test/unlink.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/unlink.c b/test/unlink.c index 16624b3..6b39ab0 100644 --- a/test/unlink.c +++ b/test/unlink.c @@ -522,7 +522,16 @@ test_filespace(hid_t fapl) size_t rdcc_nelmts; size_t rdcc_nbytes; double rdcc_w0; + const char *envval = NULL; + int ExpressMode; + /* Don't run some tests for some drivers */ + envval = HDgetenv("HDF5_DRIVER"); + if(envval == NULL) + envval = "nomatch"; + + /* See if some tests can be skipped */ + ExpressMode = GetTestExpress(); puts("Testing file space gets reused:"); @@ -957,6 +966,14 @@ test_filespace(hid_t fapl) /* Create complex group hiearchy, remove it & verify file size */ TESTING(" complex group hierarchy"); + if (ExpressMode > 1 && !HDstrcmp(envval, "direct")) { + /* This test case with Direct driver has a poor performance on + * NCSA copper, though it works. Skip it for now and worry + * about the performance later. + */ + SKIPPED(); + } else { + /* Create file */ if ((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0) TEST_ERROR @@ -1034,6 +1051,7 @@ test_filespace(hid_t fapl) if(file_size!=empty_size) TEST_ERROR PASSED(); + } /* Create dataset and duplicate dataset, remove original & verify file size */ TESTING(" duplicate dataset"); -- cgit v0.12