H5FA_create_t cparam; /* Creation parameters for fixed array */
farray_test_param_t tparam; /* Testing parameters */
farray_test_type_t curr_test; /* Current test being worked on */
farray_iter_type_t curr_iter; /* Current iteration type being worked on */
hid_t fapl = -1; /* File access property list for data files */
unsigned nerrors = 0; /* Cumulative error count */
time_t curr_time; /* Current time, for seeding random number generator */
int ExpressMode; /* Test express value */
hbool_t api_ctx_pushed = FALSE; /* Whether API context pushed */
hbool_t api_ctx_pushed = FALSE; /* Whether API context pushed */
ExpressMode = GetTestExpress();
printf("***Express test mode on. Some tests may be skipped\n");
/* Set the filename to use for this test (dependent on fapl) */
h5_fixname(FILENAME[0], fapl, filename_g, sizeof(filename_g));
if(H5CX_push() < 0) FAIL_STACK_ERROR
if(H5CX_push() < 0) FAIL_STACK_ERROR
curr_time = HDtime(NULL);
HDsrandom((unsigned)curr_time);
/* Create an empty file to retrieve size */
hid_t file; /* File ID */
if((file = H5Fcreate(filename_g, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0)
tparam.nelmts = MAX_NELMTS/17;
init_cparam(&cparam, &tparam);
/* Set the last element in the Fixed Array */
nerrors += test_skip_elmts(fapl, &cparam, &tparam, (hsize_t)(tparam.nelmts - 1), FALSE, "skipping to last element");
/* Verify symbol table messages are cached */
nerrors += (h5_verify_cached_stabs(FILENAME, fapl) < 0 ? 1 : 0);
if(api_ctx_pushed && H5CX_pop() < 0) FAIL_STACK_ERROR
if(api_ctx_pushed && H5CX_pop() < 0) FAIL_STACK_ERROR
puts("All fixed array tests passed.");
h5_cleanup(FILENAME, fapl);
puts("*** TESTS FAILED ***");
if(api_ctx_pushed) H5CX_pop();