mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-03 02:32:04 +08:00
[svn-r14245] Minor change: the test for opening external link twice doesn't work with MULTI driver.
Skip the test if it is.
This commit is contained in:
parent
360da7eb00
commit
1dc74b6177
@ -821,7 +821,8 @@ test_3 (hid_t fapl)
|
|||||||
* Function: test_4
|
* Function: test_4
|
||||||
*
|
*
|
||||||
* Purpose: Tests opening an external link twice. It exposed a bug
|
* Purpose: Tests opening an external link twice. It exposed a bug
|
||||||
* in the library. This function tests the fix.
|
* in the library. This function tests the fix. This test
|
||||||
|
* doesn't work with MULTI driver.
|
||||||
*
|
*
|
||||||
* Return: Success: 0
|
* Return: Success: 0
|
||||||
*
|
*
|
||||||
@ -842,9 +843,15 @@ test_4 (hid_t fapl)
|
|||||||
char pathname[1024];
|
char pathname[1024];
|
||||||
char linked_pathname[1024];
|
char linked_pathname[1024];
|
||||||
char *srcdir = getenv("srcdir"); /*where the src code is located*/
|
char *srcdir = getenv("srcdir"); /*where the src code is located*/
|
||||||
|
const char *envval = NULL;
|
||||||
|
|
||||||
TESTING("opening external link twice");
|
TESTING("opening external link twice");
|
||||||
|
|
||||||
|
/* Don't run this test using the multi file driver */
|
||||||
|
envval = HDgetenv("HDF5_DRIVER");
|
||||||
|
if (envval == NULL)
|
||||||
|
envval = "nomatch";
|
||||||
|
if (HDstrcmp(envval, "multi")) {
|
||||||
h5_fixname(FILENAME[3], fapl, filename, sizeof filename);
|
h5_fixname(FILENAME[3], fapl, filename, sizeof filename);
|
||||||
|
|
||||||
if((fid = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0)
|
if((fid = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0)
|
||||||
@ -893,6 +900,9 @@ test_4 (hid_t fapl)
|
|||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
PASSED();
|
PASSED();
|
||||||
|
} else
|
||||||
|
SKIPPED();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
Loading…
Reference in New Issue
Block a user