2004-07-15 04:18:28 +08:00
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
2007-02-07 22:56:24 +08:00
|
|
|
* Copyright by The HDF Group. *
|
2004-07-15 04:18:28 +08:00
|
|
|
* All rights reserved. *
|
|
|
|
* *
|
|
|
|
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
|
|
|
* terms governing use, modification, and redistribution, is contained in *
|
2017-04-18 03:32:16 +08:00
|
|
|
* the COPYING file, which can be found at the root of the source code *
|
2021-02-17 22:52:04 +08:00
|
|
|
* distribution tree, or in https://www.hdfgroup.org/licenses. *
|
2017-04-18 03:32:16 +08:00
|
|
|
* If you do not have access to either file, you may request a copy from *
|
|
|
|
* help@hdfgroup.org. *
|
2004-07-15 04:18:28 +08:00
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
|
|
|
|
#include "h5test.h"
|
|
|
|
|
2006-10-09 12:18:18 +08:00
|
|
|
#ifdef BROKEN
|
2023-06-19 13:13:38 +08:00
|
|
|
static const char *FILENAME[] = {"rsrv_heap", "rsrv_ohdr", "rsrv_vlen", NULL};
|
2004-07-23 00:26:54 +08:00
|
|
|
|
2004-07-15 04:18:28 +08:00
|
|
|
/*-------------------------------------------------------------------------
|
2019-08-16 05:46:00 +08:00
|
|
|
* Function: rsrv_heap
|
2004-07-15 04:18:28 +08:00
|
|
|
*
|
2019-08-16 05:46:00 +08:00
|
|
|
* Purpose: Ensure that heaps reserve file address space.
|
|
|
|
* This function does this by creating datasets up to and past
|
|
|
|
* the limit of the file, then ensuring that an error (not an
|
|
|
|
* assert) was generated and that the file is readable.
|
2004-07-15 04:18:28 +08:00
|
|
|
*
|
2019-08-16 05:46:00 +08:00
|
|
|
* Return: Success: 0
|
|
|
|
* Failure: 1
|
2004-07-15 04:18:28 +08:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
2004-07-17 04:48:40 +08:00
|
|
|
static herr_t
|
|
|
|
rsrv_heap(void)
|
2004-07-15 04:18:28 +08:00
|
|
|
{
|
2023-09-09 07:06:23 +08:00
|
|
|
hid_t file_id = (H5I_INVALID_HID), dataset_id = (H5I_INVALID_HID), dataspace_id = (H5I_INVALID_HID);
|
|
|
|
hid_t fapl = (H5I_INVALID_HID), fcpl = (H5I_INVALID_HID);
|
2020-09-30 22:27:10 +08:00
|
|
|
hsize_t dims[1] = {1};
|
|
|
|
char filename[1024], dset_name[10];
|
|
|
|
int i;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
|
|
|
TESTING("Reserving file space for heap");
|
|
|
|
|
2004-07-17 04:48:40 +08:00
|
|
|
/* Create a new file. */
|
2004-07-23 00:26:54 +08:00
|
|
|
fapl = h5_fileaccess();
|
2006-10-11 04:07:16 +08:00
|
|
|
|
2004-07-23 00:26:54 +08:00
|
|
|
h5_fixname(FILENAME[0], fapl, filename, sizeof filename);
|
2004-07-17 04:48:40 +08:00
|
|
|
/* Set file address sizes to be very small. */
|
2004-07-23 00:26:54 +08:00
|
|
|
fcpl = H5Pcreate(H5P_FILE_CREATE);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (fcpl < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Pset_sizes(fcpl, (size_t)2, (size_t)2) < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-23 00:26:54 +08:00
|
|
|
file_id = H5Fcreate(filename, H5F_ACC_TRUNC, fcpl, fapl);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (file_id < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-17 04:48:40 +08:00
|
|
|
/* Write datasets until the file is full, at which point HDF5
|
|
|
|
* should throw an error.
|
|
|
|
*/
|
2020-09-30 22:27:10 +08:00
|
|
|
for (i = 0; i < 200; i++) {
|
2021-03-17 23:25:39 +08:00
|
|
|
H5E_BEGIN_TRY
|
|
|
|
{
|
|
|
|
dataspace_id = H5Screate_simple(1, dims, dims);
|
|
|
|
}
|
2020-09-30 22:27:10 +08:00
|
|
|
H5E_END_TRY
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2023-09-16 06:13:18 +08:00
|
|
|
snprintf(dset_name, sizeof(dset_name), "Dset %d", i);
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2020-09-30 22:27:10 +08:00
|
|
|
H5E_BEGIN_TRY
|
|
|
|
{
|
|
|
|
dataset_id = H5Dcreate2(file_id, dset_name, H5T_NATIVE_INT, dataspace_id, H5P_DEFAULT,
|
|
|
|
H5P_DEFAULT, H5P_DEFAULT);
|
|
|
|
}
|
|
|
|
H5E_END_TRY
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2020-09-30 22:27:10 +08:00
|
|
|
if (dataset_id < 0)
|
2004-07-17 04:48:40 +08:00
|
|
|
break;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2021-03-17 23:25:39 +08:00
|
|
|
H5E_BEGIN_TRY
|
|
|
|
{
|
|
|
|
H5Dwrite(dataset_id, H5T_NATIVE_INT, dataspace_id, dataspace_id, H5P_DEFAULT, &i);
|
|
|
|
}
|
2020-09-30 22:27:10 +08:00
|
|
|
H5E_END_TRY
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5Dclose(dataset_id) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Sclose(dataspace_id) < 0)
|
|
|
|
TEST_ERROR;
|
[svn-r14193] Description:
Make H5Dopen versioned and change all internal usage to use H5Dopen2
Add simple regression test for H5Dopen1
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-09 03:59:36 +08:00
|
|
|
} /* end for */
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-17 04:48:40 +08:00
|
|
|
/* The loop should have broken before completing--the file should not have had
|
|
|
|
* enough address space to hold 200 datasets (or this test needs to be updated!).
|
|
|
|
*/
|
2020-09-30 22:27:10 +08:00
|
|
|
if (i == 200)
|
2004-07-23 00:26:54 +08:00
|
|
|
TEST_ERROR;
|
|
|
|
|
|
|
|
/* Close the file, property lists, and library */
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5Fclose(file_id) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Pclose(fapl) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Pclose(fcpl) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5close() < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-17 04:48:40 +08:00
|
|
|
/* Re-open the library and try to read a dataset from the file we created */
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5open() < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2023-09-16 06:13:18 +08:00
|
|
|
snprintf(dset_name, sizeof(dset_name), "Dset %d", i - 2);
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-23 00:26:54 +08:00
|
|
|
file_id = H5Fopen(filename, H5F_ACC_RDONLY, H5P_DEFAULT);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (file_id < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
[svn-r14193] Description:
Make H5Dopen versioned and change all internal usage to use H5Dopen2
Add simple regression test for H5Dopen1
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-09 03:59:36 +08:00
|
|
|
dataset_id = H5Dopen2(file_id, dset_name, H5P_DEFAULT);
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-17 04:48:40 +08:00
|
|
|
/* If we can read a dataset from the file, the file has been flushed to disk
|
|
|
|
* (if the heap or object headers weren't flushed, the file would be empty).
|
|
|
|
*/
|
2021-04-20 05:51:18 +08:00
|
|
|
if (dataset_id == H5I_INVALID_HID)
|
2020-09-30 22:27:10 +08:00
|
|
|
TEST_ERROR;
|
2004-07-23 00:26:54 +08:00
|
|
|
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5Dclose(dataset_id) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Fclose(file_id) < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-23 00:26:54 +08:00
|
|
|
|
|
|
|
PASSED();
|
|
|
|
return 0;
|
|
|
|
|
[svn-r14193] Description:
Make H5Dopen versioned and change all internal usage to use H5Dopen2
Add simple regression test for H5Dopen1
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-09 03:59:36 +08:00
|
|
|
error:
|
|
|
|
/* Close everything we can and exit */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5E_BEGIN_TRY
|
|
|
|
{
|
|
|
|
H5Dclose(dataset_id);
|
|
|
|
H5Sclose(dataspace_id);
|
|
|
|
H5Pclose(fcpl);
|
|
|
|
H5Pclose(fapl);
|
|
|
|
H5Fclose(file_id);
|
|
|
|
}
|
|
|
|
H5E_END_TRY
|
[svn-r14193] Description:
Make H5Dopen versioned and change all internal usage to use H5Dopen2
Add simple regression test for H5Dopen1
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-09 03:59:36 +08:00
|
|
|
return 1;
|
2004-07-15 04:18:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/*-------------------------------------------------------------------------
|
2019-08-16 05:46:00 +08:00
|
|
|
* Function: rsrv_ohdr
|
2004-07-15 04:18:28 +08:00
|
|
|
*
|
2019-08-16 05:46:00 +08:00
|
|
|
* Purpose: Ensure that object headers reserve file address space.
|
|
|
|
* This function does this by creating attributes of a dataset
|
|
|
|
* past the limit of the file, then ensuring that an error (not
|
|
|
|
* an assert) was generated and that the file is readable.
|
2004-07-15 04:18:28 +08:00
|
|
|
*
|
2019-08-16 05:46:00 +08:00
|
|
|
* Return: Success: 0
|
|
|
|
* Failure: 1
|
2004-07-15 04:18:28 +08:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
2004-07-17 04:48:40 +08:00
|
|
|
static herr_t
|
|
|
|
rsrv_ohdr(void)
|
2004-07-15 04:18:28 +08:00
|
|
|
{
|
2023-09-09 07:06:23 +08:00
|
|
|
hid_t file_id = (H5I_INVALID_HID), dataset_id = (H5I_INVALID_HID), dataspace_id = (H5I_INVALID_HID);
|
|
|
|
hid_t fapl = (H5I_INVALID_HID), fcpl = (H5I_INVALID_HID), aid, attr_id;
|
2020-09-30 22:27:10 +08:00
|
|
|
hsize_t dims[2];
|
|
|
|
herr_t status;
|
|
|
|
int attrval[4][6];
|
|
|
|
char filename[1024], attrname[20];
|
|
|
|
int i;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
|
|
|
TESTING("Reserving file space for object headers");
|
|
|
|
|
2004-07-23 00:26:54 +08:00
|
|
|
/* Create a new file */
|
|
|
|
fapl = h5_fileaccess();
|
|
|
|
h5_fixname(FILENAME[1], fapl, filename, sizeof filename);
|
|
|
|
|
|
|
|
fcpl = H5Pcreate(H5P_FILE_CREATE);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (fcpl < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Pset_sizes(fcpl, (size_t)2, (size_t)2) < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-23 00:26:54 +08:00
|
|
|
file_id = H5Fcreate(filename, H5F_ACC_TRUNC, fcpl, fapl);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (file_id < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-17 04:48:40 +08:00
|
|
|
/* Create the data space for the dataset. */
|
2020-09-30 22:27:10 +08:00
|
|
|
dims[0] = 4;
|
|
|
|
dims[1] = 6;
|
2004-07-17 04:48:40 +08:00
|
|
|
dataspace_id = H5Screate_simple(2, dims, NULL);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (dataspace_id < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-17 04:48:40 +08:00
|
|
|
/* Create the dataset. */
|
2020-09-30 22:27:10 +08:00
|
|
|
dataset_id =
|
|
|
|
H5Dcreate2(file_id, "/dset", H5T_STD_I32BE, dataspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
|
|
|
|
if (dataset_id < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2020-09-30 22:27:10 +08:00
|
|
|
for (i = 0; i < 6; i++) {
|
2004-07-15 04:18:28 +08:00
|
|
|
attrval[0][i] = 0;
|
|
|
|
attrval[1][i] = 1;
|
|
|
|
attrval[2][i] = 2;
|
|
|
|
attrval[3][i] = 3;
|
[svn-r14199] Description:
Add H5Dcreate to API versioned routines, replacing internal usage with
H5Dcreate2
Fix thread-safe error stack initialization for API versioned error
stack printing routines.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-12 00:24:11 +08:00
|
|
|
} /* end for */
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2020-09-30 22:27:10 +08:00
|
|
|
for (i = 0; i < 2000; i++) {
|
2023-09-16 06:13:18 +08:00
|
|
|
snprintf(attrname, sizeof(attrname), "attr %d", i);
|
2020-09-30 22:27:10 +08:00
|
|
|
H5E_BEGIN_TRY
|
|
|
|
{
|
|
|
|
aid = H5Screate_simple(2, dims, NULL);
|
[svn-r14218] Description:
Changed H5Acreate2 -> H5Acreate_by_name, to be more consistent with
other new API routines.
Re-added simpler form of H5Acreate2, which creates attributes directly
on an object.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-31 02:13:48 +08:00
|
|
|
attr_id = H5Acreate2(dataset_id, attrname, H5T_STD_I32BE, aid, H5P_DEFAULT, H5P_DEFAULT);
|
2004-07-23 00:26:54 +08:00
|
|
|
H5Awrite(attr_id, H5T_NATIVE_INT, attrval);
|
2004-07-17 04:48:40 +08:00
|
|
|
status = H5Aclose(attr_id);
|
2020-09-30 22:27:10 +08:00
|
|
|
}
|
|
|
|
H5E_END_TRY
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2020-09-30 22:27:10 +08:00
|
|
|
if (status < 0)
|
2004-07-15 04:18:28 +08:00
|
|
|
break;
|
[svn-r14199] Description:
Add H5Dcreate to API versioned routines, replacing internal usage with
H5Dcreate2
Fix thread-safe error stack initialization for API versioned error
stack printing routines.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-12 00:24:11 +08:00
|
|
|
} /* end for */
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-17 04:48:40 +08:00
|
|
|
/* The loop should have broken before completing--the file should not have had
|
2004-07-23 00:26:54 +08:00
|
|
|
* enough address space to hold 2000 attributes (or this test needs to be updated
|
|
|
|
!).
|
2004-07-17 04:48:40 +08:00
|
|
|
*/
|
2020-09-30 22:27:10 +08:00
|
|
|
if (i == 2000)
|
2004-07-23 00:26:54 +08:00
|
|
|
TEST_ERROR;
|
|
|
|
|
|
|
|
/* End access to the dataset and dataspace and release resources. */
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5Dclose(dataset_id) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Pclose(fapl) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Pclose(fcpl) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Sclose(dataspace_id) < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-23 00:26:54 +08:00
|
|
|
|
|
|
|
/* Close the file and the library. */
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5Fclose(file_id) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5close() < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-17 04:48:40 +08:00
|
|
|
/* Re-open the library and try to read a dataset from the file we created */
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5open() < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-23 00:26:54 +08:00
|
|
|
file_id = H5Fopen(filename, H5F_ACC_RDONLY, H5P_DEFAULT);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (file_id < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
[svn-r14193] Description:
Make H5Dopen versioned and change all internal usage to use H5Dopen2
Add simple regression test for H5Dopen1
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-09 03:59:36 +08:00
|
|
|
dataset_id = H5Dopen2(file_id, "/dset", H5P_DEFAULT);
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-17 04:48:40 +08:00
|
|
|
/* If we can read the dataset from the file, the file has been flushed to disk
|
|
|
|
* (if the heap or object headers weren't flushed, the file would be empty).
|
|
|
|
*/
|
2021-04-20 05:51:18 +08:00
|
|
|
if (dataset_id == H5I_INVALID_HID)
|
2004-07-23 00:26:54 +08:00
|
|
|
TEST_ERROR;
|
|
|
|
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5Dclose(dataset_id) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Fclose(file_id) < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-23 00:26:54 +08:00
|
|
|
|
|
|
|
PASSED();
|
|
|
|
return 0;
|
|
|
|
|
[svn-r14193] Description:
Make H5Dopen versioned and change all internal usage to use H5Dopen2
Add simple regression test for H5Dopen1
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-09 03:59:36 +08:00
|
|
|
error:
|
|
|
|
/* Close everything we can and exit */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5E_BEGIN_TRY
|
|
|
|
{
|
|
|
|
H5Dclose(dataset_id);
|
|
|
|
H5Sclose(dataspace_id);
|
|
|
|
H5Pclose(fcpl);
|
|
|
|
H5Pclose(fapl);
|
|
|
|
H5Fclose(file_id);
|
|
|
|
}
|
|
|
|
H5E_END_TRY
|
[svn-r14193] Description:
Make H5Dopen versioned and change all internal usage to use H5Dopen2
Add simple regression test for H5Dopen1
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-09 03:59:36 +08:00
|
|
|
return 1;
|
2004-07-15 04:18:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/*-------------------------------------------------------------------------
|
2019-08-16 05:46:00 +08:00
|
|
|
* Function: rsrv_vlen
|
2004-07-15 04:18:28 +08:00
|
|
|
*
|
2019-08-16 05:46:00 +08:00
|
|
|
* Purpose: Ensure that variable length datatypes properly ensure that
|
2004-07-15 04:18:28 +08:00
|
|
|
* enough file address space exists before writing.
|
2019-08-16 05:46:00 +08:00
|
|
|
* This function does this by creating a dataset containing
|
2004-07-15 04:18:28 +08:00
|
|
|
* variable length data past the limit of the file, then
|
2005-08-14 04:53:35 +08:00
|
|
|
* ensuring that an error (not an assert) was generated and
|
2004-07-15 04:18:28 +08:00
|
|
|
* that the file is readable.
|
|
|
|
*
|
2019-08-16 05:46:00 +08:00
|
|
|
* Return: Success: 0
|
|
|
|
* Failure: 1
|
2004-07-15 04:18:28 +08:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
2004-07-17 04:48:40 +08:00
|
|
|
static herr_t
|
|
|
|
rsrv_vlen(void)
|
2004-07-15 04:18:28 +08:00
|
|
|
{
|
2023-09-09 07:06:23 +08:00
|
|
|
hid_t file_id = (H5I_INVALID_HID), dataset_id = (H5I_INVALID_HID), dataspace_id = (H5I_INVALID_HID),
|
|
|
|
type_id = (H5I_INVALID_HID);
|
|
|
|
hid_t fapl = (H5I_INVALID_HID), fcpl = (H5I_INVALID_HID), mem_space_id = (H5I_INVALID_HID);
|
2020-09-30 22:27:10 +08:00
|
|
|
hssize_t offset[1];
|
|
|
|
hsize_t start[1];
|
|
|
|
hsize_t dims[1], count[1];
|
|
|
|
herr_t status;
|
|
|
|
int i;
|
|
|
|
int write_buf[20];
|
|
|
|
char filename[1024];
|
|
|
|
hvl_t vlen_data;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
|
|
|
TESTING("Reserved space with variable length data");
|
|
|
|
|
2004-07-23 00:26:54 +08:00
|
|
|
/* Create a new file */
|
|
|
|
fapl = h5_fileaccess();
|
|
|
|
h5_fixname(FILENAME[2], fapl, filename, sizeof filename);
|
|
|
|
|
|
|
|
/* Make file address space very small */
|
|
|
|
fcpl = H5Pcreate(H5P_FILE_CREATE);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (fcpl < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Pset_sizes(fcpl, (size_t)2, (size_t)2) < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-23 00:26:54 +08:00
|
|
|
file_id = H5Fcreate(filename, H5F_ACC_TRUNC, fcpl, fapl);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (file_id < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
|
|
|
/* Create the data space for the dataset. */
|
2020-09-30 22:27:10 +08:00
|
|
|
dims[0] = 2000;
|
2004-07-15 04:18:28 +08:00
|
|
|
dataspace_id = H5Screate_simple(1, dims, NULL);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (dataspace_id < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
|
|
|
/* Create a variable length type */
|
|
|
|
type_id = H5Tvlen_create(H5T_NATIVE_INT);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (type_id < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
|
|
|
/* Create the dataset. */
|
[svn-r14199] Description:
Add H5Dcreate to API versioned routines, replacing internal usage with
H5Dcreate2
Fix thread-safe error stack initialization for API versioned error
stack printing routines.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-12 00:24:11 +08:00
|
|
|
dataset_id = H5Dcreate2(file_id, "/dset", type_id, dataspace_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (dataset_id < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
|
|
|
/* Create some data to write */
|
2020-09-30 22:27:10 +08:00
|
|
|
for (i = 0; i < 20; i++)
|
[svn-r14199] Description:
Add H5Dcreate to API versioned routines, replacing internal usage with
H5Dcreate2
Fix thread-safe error stack initialization for API versioned error
stack printing routines.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-12 00:24:11 +08:00
|
|
|
write_buf[i] = i + 1;
|
2004-07-15 04:18:28 +08:00
|
|
|
vlen_data.p = write_buf;
|
|
|
|
|
|
|
|
/* Create a memory dataspace for writing */
|
2020-09-30 22:27:10 +08:00
|
|
|
dims[0] = 1;
|
2005-08-14 04:53:35 +08:00
|
|
|
mem_space_id = H5Screate_simple(1, dims, NULL);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (mem_space_id < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
|
|
|
/* Create a selection to write to */
|
|
|
|
start[0] = 0;
|
|
|
|
count[0] = 1;
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5Sselect_hyperslab(dataspace_id, H5S_SELECT_SET, start, NULL, count, NULL) < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2020-09-30 22:27:10 +08:00
|
|
|
for (i = 0; i < 2000; i++) {
|
|
|
|
vlen_data.len = (i % 20) + 1;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-17 04:48:40 +08:00
|
|
|
offset[0] = i;
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5Soffset_simple(dataspace_id, offset) < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
|
|
|
H5E_BEGIN_TRY
|
2020-09-30 22:27:10 +08:00
|
|
|
status = H5Dwrite(dataset_id, type_id, mem_space_id, dataspace_id, H5P_DEFAULT, &vlen_data);
|
2004-07-15 04:18:28 +08:00
|
|
|
H5E_END_TRY
|
|
|
|
|
2020-09-30 22:27:10 +08:00
|
|
|
if (status < 0)
|
2004-07-15 04:18:28 +08:00
|
|
|
break;
|
[svn-r14199] Description:
Add H5Dcreate to API versioned routines, replacing internal usage with
H5Dcreate2
Fix thread-safe error stack initialization for API versioned error
stack printing routines.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-12 00:24:11 +08:00
|
|
|
} /* end for */
|
2004-07-15 04:18:28 +08:00
|
|
|
|
|
|
|
/* The loop should have broken before completing--the file should not have had
|
|
|
|
* enough address space to hold 2000 attributes (or this test needs to be updated!).
|
|
|
|
*/
|
2020-09-30 22:27:10 +08:00
|
|
|
if (i == 2000)
|
2004-07-23 00:26:54 +08:00
|
|
|
TEST_ERROR;
|
|
|
|
|
|
|
|
/* End access to the dataset and dataspace and release resources. */
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5Dclose(dataset_id) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Pclose(fcpl) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Pclose(fapl) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Sclose(dataspace_id) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Tclose(type_id) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Sclose(mem_space_id) < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-23 00:26:54 +08:00
|
|
|
|
|
|
|
/* Close the file and the library. */
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5Fclose(file_id) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5close() < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
|
|
|
/* Re-open the library and try to read a dataset from the file we created */
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5open() < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
2004-07-23 00:26:54 +08:00
|
|
|
file_id = H5Fopen(filename, H5F_ACC_RDONLY, H5P_DEFAULT);
|
2020-09-30 22:27:10 +08:00
|
|
|
if (file_id < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-15 04:18:28 +08:00
|
|
|
|
[svn-r14193] Description:
Make H5Dopen versioned and change all internal usage to use H5Dopen2
Add simple regression test for H5Dopen1
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-09 03:59:36 +08:00
|
|
|
dataset_id = H5Dopen2(file_id, "/dset", H5P_DEFAULT);
|
2004-07-15 04:18:28 +08:00
|
|
|
|
|
|
|
/* If we can read the dataset from the file, the file has been flushed to disk
|
|
|
|
* (if the heap or object headers weren't flushed, the file would be empty).
|
|
|
|
*/
|
2021-04-20 05:51:18 +08:00
|
|
|
if (dataset_id == H5I_INVALID_HID)
|
2004-07-23 00:26:54 +08:00
|
|
|
TEST_ERROR;
|
|
|
|
|
2020-09-30 22:27:10 +08:00
|
|
|
if (H5Dclose(dataset_id) < 0)
|
|
|
|
TEST_ERROR;
|
|
|
|
if (H5Fclose(file_id) < 0)
|
|
|
|
TEST_ERROR;
|
2004-07-23 00:26:54 +08:00
|
|
|
|
|
|
|
PASSED();
|
|
|
|
return 0;
|
|
|
|
|
[svn-r14193] Description:
Make H5Dopen versioned and change all internal usage to use H5Dopen2
Add simple regression test for H5Dopen1
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-09 03:59:36 +08:00
|
|
|
error:
|
|
|
|
/* Close everything we can and exit */
|
2020-09-30 22:27:10 +08:00
|
|
|
H5E_BEGIN_TRY
|
|
|
|
{
|
|
|
|
H5Dclose(dataset_id);
|
|
|
|
H5Sclose(dataspace_id);
|
|
|
|
H5Sclose(mem_space_id);
|
|
|
|
H5Tclose(type_id);
|
|
|
|
H5Pclose(fcpl);
|
|
|
|
H5Pclose(fapl);
|
|
|
|
H5Fclose(file_id);
|
|
|
|
}
|
|
|
|
H5E_END_TRY
|
[svn-r14193] Description:
Make H5Dopen versioned and change all internal usage to use H5Dopen2
Add simple regression test for H5Dopen1
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-09 03:59:36 +08:00
|
|
|
return 1;
|
2004-07-15 04:18:28 +08:00
|
|
|
}
|
2006-10-09 12:18:18 +08:00
|
|
|
#endif /* BROKEN */
|
2004-07-15 04:18:28 +08:00
|
|
|
|
|
|
|
/*-------------------------------------------------------------------------
|
2019-08-16 05:46:00 +08:00
|
|
|
* Function: main
|
2004-07-15 04:18:28 +08:00
|
|
|
*
|
2005-08-14 04:53:35 +08:00
|
|
|
* Purpose:
|
2004-07-15 04:18:28 +08:00
|
|
|
*
|
2019-08-16 05:46:00 +08:00
|
|
|
* Return: Success:
|
2004-07-15 04:18:28 +08:00
|
|
|
*
|
2019-08-16 05:46:00 +08:00
|
|
|
* Failure:
|
2004-07-15 04:18:28 +08:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
main(void)
|
|
|
|
{
|
2022-08-18 07:31:54 +08:00
|
|
|
/* This test is currently not working properly; it should be revisited
|
2006-10-07 01:38:42 +08:00
|
|
|
* when we have time.
|
[svn-r15868] Description:
Correct a minor error in file free space allocation which was affecting
the 'multi' VFD and preventing some tests from fully working with it.
Wholesale revisitation of all the places where tests were disabled
with various VFDs and remove or correct all these so that _only_ the tests
which _really_ can't work with particular VFDs are skipped during a
'make check-vfd' test.
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-10-15 09:46:34 +08:00
|
|
|
*
|
|
|
|
* (Also, we should try to make this test work with all the VFDs)
|
2006-10-07 01:38:42 +08:00
|
|
|
*/
|
|
|
|
#ifdef BROKEN
|
2020-09-30 22:27:10 +08:00
|
|
|
int num_errs = 0;
|
|
|
|
hid_t fapl;
|
2006-10-09 12:18:18 +08:00
|
|
|
const char *envval = NULL;
|
|
|
|
|
2023-09-27 04:11:22 +08:00
|
|
|
envval = getenv(HDF5_DRIVER);
|
2008-09-16 23:52:51 +08:00
|
|
|
if (envval == NULL)
|
2006-08-01 03:46:16 +08:00
|
|
|
envval = "nomatch";
|
2020-09-30 22:27:10 +08:00
|
|
|
/* QAK: should be able to use the core driver? */
|
2023-09-16 06:13:18 +08:00
|
|
|
if (strcmp(envval, "core") && strcmp(envval, "split") && strcmp(envval, "multi") &&
|
|
|
|
strcmp(envval, "family")) {
|
2020-09-30 22:27:10 +08:00
|
|
|
num_errs += rsrv_ohdr();
|
|
|
|
num_errs += rsrv_heap();
|
|
|
|
num_errs += rsrv_vlen();
|
|
|
|
|
|
|
|
if (num_errs > 0)
|
2023-06-28 23:31:32 +08:00
|
|
|
printf("**** %d FAILURE%s! ****\n", num_errs, num_errs == 1 ? "" : "S");
|
2020-09-30 22:27:10 +08:00
|
|
|
else
|
2023-09-16 06:13:18 +08:00
|
|
|
puts("All address space reservation tests passed.");
|
2020-09-30 22:27:10 +08:00
|
|
|
|
|
|
|
fapl = h5_fileaccess();
|
|
|
|
h5_cleanup(FILENAME, fapl);
|
|
|
|
return num_errs;
|
2006-08-01 03:46:16 +08:00
|
|
|
}
|
2020-09-30 22:27:10 +08:00
|
|
|
else {
|
2023-09-16 06:13:18 +08:00
|
|
|
puts("All address space reservation tests skipped - Incompatible with current Virtual File Driver");
|
2006-08-01 03:46:16 +08:00
|
|
|
}
|
2006-10-09 12:18:18 +08:00
|
|
|
#endif /* BROKEN */
|
2006-10-07 01:38:42 +08:00
|
|
|
|
|
|
|
SKIPPED();
|
2006-08-01 03:46:16 +08:00
|
|
|
return 0;
|
2004-07-15 04:18:28 +08:00
|
|
|
}
|