summaryrefslogtreecommitdiffstats
path: root/test/dsets.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/dsets.c')
-rw-r--r--test/dsets.c219
1 files changed, 109 insertions, 110 deletions
diff --git a/test/dsets.c b/test/dsets.c
index 9208233..63ceb4d 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -416,7 +416,7 @@ test_create(hid_t file)
dataset = H5Dcreate2(file, DSET_DEFAULT_NAME, H5T_NATIVE_DOUBLE, space, H5P_DEFAULT, H5P_DEFAULT,
H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dataset >= 0) {
H5_FAILED();
HDputs(" Library allowed overwrite of existing dataset.");
@@ -443,7 +443,7 @@ test_create(hid_t file)
{
dataset = H5Dopen2(file, "does_not_exist", H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dataset >= 0) {
H5_FAILED();
HDputs(" Opened a non-existent dataset.");
@@ -467,7 +467,7 @@ test_create(hid_t file)
dataset = H5Dcreate2(file, DSET_CHUNKED_NAME, H5T_NATIVE_DOUBLE, space, H5P_DEFAULT, create_parms,
H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dataset >= 0) {
H5_FAILED();
HDputs(" Opened a dataset with incorrect chunking parameters.");
@@ -945,7 +945,7 @@ test_compact_io(hid_t fapl)
{
ret = H5Pset_libver_bounds(new_fapl, low, high);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret < 0) /* Invalid low/high combinations */
continue;
@@ -1039,7 +1039,7 @@ error:
H5Fclose(file);
H5Fclose(verfile);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_compact_io() */
@@ -1169,7 +1169,7 @@ test_max_compact(hid_t fapl)
{
H5Dcreate2(file, DSET_COMPACT_MAX2_NAME, H5T_NATIVE_INT, space, H5P_DEFAULT, plist, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
/* Close file */
if (H5Sclose(space) < 0)
@@ -1196,7 +1196,7 @@ error:
H5Dclose(dataset);
H5Fclose(file);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_max_compact() */
@@ -1254,7 +1254,7 @@ test_layout_extend(hid_t fapl)
FAIL)
TEST_ERROR;
}
- H5E_END_TRY;
+ H5E_END_TRY
/* Create dataset with extendible dataspace (unlimited max_dims) should fail */
H5E_BEGIN_TRY
@@ -1263,7 +1263,7 @@ test_layout_extend(hid_t fapl)
FAIL)
TEST_ERROR;
}
- H5E_END_TRY;
+ H5E_END_TRY
/* Create property list for contiguous dataset creation */
if ((dcpl_contig = H5Pcreate(H5P_DATASET_CREATE)) < 0)
@@ -1277,7 +1277,7 @@ test_layout_extend(hid_t fapl)
if (H5Dcreate2(fid, "contig", H5T_NATIVE_INT, sid_fix, H5P_DEFAULT, dcpl_contig, H5P_DEFAULT) != FAIL)
TEST_ERROR;
}
- H5E_END_TRY;
+ H5E_END_TRY
/* Create dataset with extendible dataspace (unlimited max_dims) should fail*/
H5E_BEGIN_TRY
@@ -1286,7 +1286,7 @@ test_layout_extend(hid_t fapl)
FAIL)
TEST_ERROR;
}
- H5E_END_TRY;
+ H5E_END_TRY
/* Create property list for chunked dataset creation */
if ((dcpl_chunked = H5Pcreate(H5P_DATASET_CREATE)) < 0)
@@ -1342,7 +1342,7 @@ error:
H5Dclose(did_unlim);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_layout_extend() */
@@ -1469,7 +1469,7 @@ test_conv_buffer(hid_t fid)
{
status = H5Dread(dataset, ctype2, H5S_ALL, H5S_ALL, xfer_list, cfrR);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0) {
H5_FAILED();
HDputs(" Library shouldn't allow conversion buffer too small");
@@ -1527,7 +1527,7 @@ error:
H5Tclose(arr_type5);
H5Dclose(dataset);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_conv_buffer() */
@@ -1613,7 +1613,7 @@ error:
H5Dclose(dataset);
H5Sclose(space);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_tconv() */
@@ -2006,7 +2006,7 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
{
status = H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, write_dxpl, check_data);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
TEST_ERROR;
@@ -2024,7 +2024,7 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
{
status = H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, write_dxpl, check_data);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
TEST_ERROR;
}
@@ -2073,7 +2073,7 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
{
status = H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, write_dxpl, check_data);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
TEST_ERROR;
@@ -2091,7 +2091,7 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
{
status = H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, write_dxpl, check_data);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
TEST_ERROR;
}
@@ -2137,7 +2137,7 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
{
status = H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, write_dxpl, check_data);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
TEST_ERROR;
@@ -2156,7 +2156,7 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
{
status = H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, write_dxpl, check_data);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
TEST_ERROR;
} /* end if */
@@ -2204,7 +2204,7 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
{
status = H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, write_dxpl, check_data);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
TEST_ERROR;
@@ -2222,7 +2222,7 @@ test_filter_internal(hid_t fid, const char *name, hid_t dcpl, int if_fletcher32,
{
status = H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, write_dxpl, check_data);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
TEST_ERROR;
}
@@ -2474,7 +2474,7 @@ test_get_filter_info(void)
{
err = H5Zget_filter_info(-1, &flags);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (err >= 0)
TEST_ERROR;
@@ -3020,7 +3020,7 @@ test_missing_filter(hid_t file)
{
ret = H5Dread(dsid, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, check_data);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
HDprintf(" Line %d: Should not be able to read dataset data\n", __LINE__);
@@ -5718,7 +5718,7 @@ error:
H5Sclose(space);
H5Pclose(dcpl);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_multiopen() */
@@ -5829,7 +5829,7 @@ error:
H5Sclose(space);
H5Dclose(dset);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_types() */
@@ -5908,7 +5908,7 @@ test_can_apply(hid_t file)
{
dsid = H5Dcreate2(file, DSET_CAN_APPLY_NAME, H5T_NATIVE_DOUBLE, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dsid >= 0) {
H5_FAILED();
HDprintf(" Line %d: Shouldn't have created dataset!\n", __LINE__);
@@ -5921,7 +5921,7 @@ test_can_apply(hid_t file)
{
dsid = H5Dcreate2(file, DSET_CAN_APPLY_NAME, H5T_NATIVE_FLOAT, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dsid >= 0) {
H5_FAILED();
HDprintf(" Line %d: Shouldn't have created dataset!\n", __LINE__);
@@ -6276,7 +6276,7 @@ error:
H5Tclose(strtid);
H5Tclose(vlentid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_optional_filters() */
@@ -6344,7 +6344,7 @@ test_can_apply_szip(hid_t
{
ret = H5Pset_szip(dcpl, szip_options_mask, szip_pixels_per_block);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
HDprintf(" Line %d: Shouldn't be able to set szip filter\n", __LINE__);
@@ -6357,7 +6357,7 @@ test_can_apply_szip(hid_t
{
ret = H5Pset_szip(dcpl, szip_options_mask, szip_pixels_per_block);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
HDprintf(" Line %d: Shouldn't be able to set szip filter\n", __LINE__);
@@ -6380,7 +6380,7 @@ test_can_apply_szip(hid_t
dsid = H5Dcreate2(file, DSET_CAN_APPLY_SZIP_NAME, H5T_NATIVE_INT, sid, H5P_DEFAULT, dcpl,
H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dsid <= 0) {
H5_FAILED();
HDprintf(" Line %d: Should have created dataset!\n", __LINE__);
@@ -6442,7 +6442,7 @@ test_can_apply_szip(hid_t
dsid = H5Dcreate2(file, DSET_CAN_APPLY_SZIP_NAME, H5T_NATIVE_INT, sid, H5P_DEFAULT, dcpl,
H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dsid >= 0) {
H5_FAILED();
HDprintf(" Line %d: Shouldn't have created dataset!\n", __LINE__);
@@ -6854,7 +6854,7 @@ error:
H5Pclose(dcpl1);
H5Pclose(dcpl2);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_compare_dcpl() */
@@ -7017,7 +7017,7 @@ error:
H5Pclose(dcpl1_copy);
H5Pclose(dcpl2_copy);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_copy_dcpl() */
@@ -7103,7 +7103,7 @@ test_filter_delete(hid_t file)
{
ret = H5Pget_filter_by_id2(dcpl1, H5Z_FILTER_DEFLATE, &flags, NULL, NULL, (size_t)0, NULL, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
HDprintf(" Line %d: Shouldn't have deleted filter!\n", __LINE__);
@@ -7115,7 +7115,7 @@ test_filter_delete(hid_t file)
{
ret = H5Premove_filter(dcpl1, H5Z_FILTER_DEFLATE);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
HDprintf(" Line %d: Shouldn't have deleted filter!\n", __LINE__);
@@ -7165,7 +7165,7 @@ error:
H5Dclose(dsid);
H5Sclose(sid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
#else
(void)file; /* Silence compiler */
@@ -7255,7 +7255,7 @@ error:
if (buf)
HDfree(buf);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end auxread_fdata() */
@@ -7332,7 +7332,7 @@ error:
H5Sclose(sid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_filters_endianess() */
@@ -7393,7 +7393,7 @@ test_zero_dims(hid_t file)
{
d = H5Dcreate2(file, ZERODIM_DATASET, H5T_NATIVE_INT, s, H5P_DEFAULT, dcpl, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (d > 0) {
H5Dclose(d);
FAIL_PUTS_ERROR("created dataset with undefined chunk dimensions");
@@ -7404,7 +7404,7 @@ test_zero_dims(hid_t file)
{
ret = H5Pset_chunk(dcpl, 1, &dzero);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret > 0)
FAIL_PUTS_ERROR("set zero-sized chunk dimensions");
@@ -7474,7 +7474,7 @@ test_zero_dims(hid_t file)
{
d2 = H5Dcreate2(file, ZERODIM_DATASET2, H5T_NATIVE_INT, s2, H5P_DEFAULT, dcpl2, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (d2 > 0) {
H5Dclose(d2);
FAIL_PUTS_ERROR("created dataset with undefined chunk dimensions");
@@ -7485,7 +7485,7 @@ test_zero_dims(hid_t file)
{
ret = H5Pset_chunk(dcpl2, 2, dzero2);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret > 0)
FAIL_PUTS_ERROR("set zero-sized chunk dimensions");
@@ -7541,7 +7541,7 @@ error:
H5Dclose(d2);
H5Sclose(s2);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_zero_dims() */
@@ -7792,7 +7792,7 @@ error:
H5Sclose(s);
H5Sclose(sid2);
}
- H5E_END_TRY;
+ H5E_END_TRY
HDfree(rdata);
HDfree(wdata);
@@ -8336,7 +8336,7 @@ error:
H5Dclose(d);
H5Fclose(file);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_random_chunks_real() */
@@ -8375,7 +8375,6 @@ test_random_chunks(hid_t fapl)
nerrors += test_random_chunks_real("Write/read on randomly selected chunks w/implicit index", TRUE, fapl);
return nerrors;
- ;
} /* end test_random_chunks() */
#ifndef H5_NO_DEPRECATED_SYMBOLS
@@ -8457,7 +8456,7 @@ test_deprec(hid_t file)
{
dataset = H5Dcreate1(file, DSET_DEFAULT_NAME, H5T_NATIVE_DOUBLE, space, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dataset >= 0) {
H5_FAILED();
HDputs(" Library allowed overwrite of existing dataset.");
@@ -8482,7 +8481,7 @@ test_deprec(hid_t file)
{
dataset = H5Dopen1(file, "does_not_exist");
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dataset >= 0) {
H5_FAILED();
HDputs(" Opened a non-existent dataset.");
@@ -8535,7 +8534,7 @@ test_deprec(hid_t file)
{
dataset = H5Dcreate1(file, DSET_DEPREC_NAME_CHUNKED, H5T_NATIVE_DOUBLE, space, create_parms);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dataset >= 0) {
H5_FAILED();
HDputs(" Opened a dataset with incorrect chunking parameters.");
@@ -8660,7 +8659,7 @@ test_huge_chunks(hid_t fapl)
{
ret = H5Pset_chunk(dcpl, 1, &chunk_dim);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret >= 0)
FAIL_PUTS_ERROR(" Set chunk size with too large of chunk dimensions.");
@@ -8672,7 +8671,7 @@ test_huge_chunks(hid_t fapl)
{
ret = H5Pset_chunk(dcpl, 3, chunk_dim2);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret >= 0)
FAIL_PUTS_ERROR(" Set chunk size with too large of chunk dimensions.");
@@ -8691,7 +8690,7 @@ test_huge_chunks(hid_t fapl)
{
dsid = H5Dcreate2(fid, HUGE_DATASET, H5T_NATIVE_INT, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dsid >= 0)
FAIL_PUTS_ERROR(" 1-D Dataset with too large of chunk dimensions created.");
@@ -8718,7 +8717,7 @@ test_huge_chunks(hid_t fapl)
{
dsid = H5Dcreate2(fid, HUGE_DATASET2, H5T_NATIVE_INT, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dsid >= 0)
FAIL_PUTS_ERROR(" n-D Dataset with too large of chunk dimensions created.");
@@ -8743,7 +8742,7 @@ error:
H5Sclose(sid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_huge_chunks() */
@@ -9011,7 +9010,7 @@ error:
H5Sclose(sid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_chunk_cache() */
@@ -9380,7 +9379,7 @@ error:
H5Sclose(t_sid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
HDfree(wdata);
HDfree(rdata1);
@@ -9806,7 +9805,7 @@ error:
H5Fclose(fid);
H5Pclose(my_fapl);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_chunk_fast() */
@@ -9944,7 +9943,7 @@ error:
H5Sclose(scalar_sid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_reopen_chunk_fast() */
@@ -10089,7 +10088,7 @@ error:
H5Sclose(sid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
HDfree(wbuf);
HDfree(rbuf);
@@ -10276,7 +10275,7 @@ test_chunk_expand(hid_t fapl)
{
dsid = H5Dcreate2(fid, "dset", H5T_NATIVE_UINT, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dsid >= 0)
FAIL_PUTS_ERROR("should fail to create dataset when allocation time is early");
@@ -10284,7 +10283,7 @@ test_chunk_expand(hid_t fapl)
{
dsid2 = H5Dcreate2(fid, "dset2", H5T_NATIVE_UINT, sid2, H5P_DEFAULT, dcpl2, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (dsid2 >= 0)
FAIL_PUTS_ERROR("should fail to create dataset when allocation time is early");
@@ -10381,7 +10380,7 @@ test_chunk_expand(hid_t fapl)
{
status = H5Dwrite(dsid, H5T_NATIVE_UINT, scalar_sid, sid, H5P_DEFAULT, &write_elem);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
FAIL_PUTS_ERROR("should fail to write to dataset when allocation time is not early");
@@ -10390,7 +10389,7 @@ test_chunk_expand(hid_t fapl)
status =
H5Dwrite(dsid2, H5T_NATIVE_UINT, scalar_sid, sid2, H5P_DEFAULT, &write_elem2);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
FAIL_PUTS_ERROR("should fail to write to dataset when allocation time is not early");
} /* end for */
@@ -10477,7 +10476,7 @@ test_chunk_expand(hid_t fapl)
status =
H5Dwrite(dsid, H5T_NATIVE_UINT, scalar_sid, sid, H5P_DEFAULT, &write_elem);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
FAIL_PUTS_ERROR(
"should fail to write to dataset when allocation time is not early");
@@ -10487,7 +10486,7 @@ test_chunk_expand(hid_t fapl)
status =
H5Dwrite(dsid2, H5T_NATIVE_UINT, scalar_sid, sid2, H5P_DEFAULT, &write_elem2);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
FAIL_PUTS_ERROR(
"should fail to write to dataset when allocation time is not early");
@@ -10616,7 +10615,7 @@ test_chunk_expand(hid_t fapl)
{
status = H5Dwrite(dsid, H5T_NATIVE_UINT, scalar_sid, sid, H5P_DEFAULT, &write_elem);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
FAIL_PUTS_ERROR("should fail to write to dataset when allocation time is not early");
@@ -10625,7 +10624,7 @@ test_chunk_expand(hid_t fapl)
status =
H5Dwrite(dsid2, H5T_NATIVE_UINT, scalar_sid, sid2, H5P_DEFAULT, &write_elem2);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
FAIL_PUTS_ERROR("should fail to write to dataset when allocation time is not early");
} /* end for */
@@ -10685,7 +10684,7 @@ error:
H5Sclose(scalar_sid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_chunk_expand() */
@@ -11217,7 +11216,7 @@ error:
H5Sclose(mem_id);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
HDfree(wbuf_big);
HDfree(rbuf_big);
@@ -11516,7 +11515,7 @@ error:
H5Sclose(sid_max);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (wbuf)
HDfree(wbuf);
if (rbuf)
@@ -11603,7 +11602,7 @@ error:
H5Dclose(did);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_idx_compatible() */
@@ -11744,7 +11743,7 @@ error:
H5Sclose(sid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_unfiltered_edge_chunks() */
@@ -11880,7 +11879,7 @@ error:
H5Sclose(scalar_sid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_large_chunk_shrink() */
@@ -11924,7 +11923,7 @@ test_zero_dim_dset(hid_t fapl)
{
ret = H5Pset_libver_bounds(fapl, low, high);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret < 0) /* Invalid low/high combinations */
continue;
@@ -11986,7 +11985,7 @@ error:
H5Sclose(sid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_zero_dim_dset() */
@@ -12257,7 +12256,7 @@ error:
H5Gclose(gid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* test_swmr_non_latest() */
@@ -12378,7 +12377,7 @@ error:
H5Sclose(sid);
H5Sclose(msid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* test_earray_hdr_fd() */
@@ -12499,7 +12498,7 @@ error:
H5Sclose(sid);
H5Sclose(msid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_farray_hdr_fd() */
@@ -12626,7 +12625,7 @@ error:
H5Sclose(sid);
H5Sclose(msid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_bt2_hdr_fd() */
@@ -13116,7 +13115,7 @@ error:
H5Sclose(sid);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_storage_size() */
@@ -13184,7 +13183,7 @@ test_power2up(hid_t fapl)
{
status = H5Dset_extent(did, ext_dims);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (status >= 0)
TEST_ERROR;
@@ -13211,7 +13210,7 @@ error:
H5Pclose(dcpl);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_power2up() */
@@ -13523,7 +13522,7 @@ error:
{
H5Sclose(sid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_scatter() */
@@ -13890,7 +13889,7 @@ error:
{
H5Sclose(sid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_gather() */
@@ -14123,7 +14122,7 @@ error:
{
H5Sclose(sid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_scatter_error() */
@@ -14289,7 +14288,7 @@ error:
{
H5Sclose(sid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_gather_error() */
@@ -14653,7 +14652,7 @@ test_compact_open_close_dirty(hid_t fapl)
{
did = H5Dopen2(fid, DSET_COMPACT_MAX_NAME, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (did < 0)
TEST_ERROR;
if (H5Dclose(did) < 0)
@@ -14699,7 +14698,7 @@ error:
H5Dclose(did);
H5Fclose(fid);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_compact_open_close_dirty() */
@@ -14784,7 +14783,7 @@ test_versionbounds(void)
{
ret = H5Pset_libver_bounds(fapl, low, high);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret < 0) /* Invalid low/high combinations */
continue;
@@ -14805,7 +14804,7 @@ test_versionbounds(void)
{
vdset = H5Dcreate2(vfile, V_DSET, H5T_NATIVE_INT, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (vdset > 0) /* dataset created successfully */
{
@@ -14862,7 +14861,7 @@ error:
H5Fclose(srcfile);
H5Fclose(vfile);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_versionbounds() */
@@ -14940,7 +14939,7 @@ test_object_header_minimization_dcpl(void)
{
ret = H5Pget_dset_no_attrs_hint(H5I_INVALID_HID, &minimize);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret == SUCCEED)
TEST_ERROR;
@@ -14949,7 +14948,7 @@ test_object_header_minimization_dcpl(void)
{
ret = H5Pset_dset_no_attrs_hint(H5I_INVALID_HID, FALSE);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret == SUCCEED)
TEST_ERROR;
@@ -14958,7 +14957,7 @@ test_object_header_minimization_dcpl(void)
{
ret = H5Pset_dset_no_attrs_hint(H5I_INVALID_HID, TRUE);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret == SUCCEED)
TEST_ERROR;
@@ -14967,7 +14966,7 @@ test_object_header_minimization_dcpl(void)
{
ret = H5Pget_dset_no_attrs_hint(dcpl_id, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret == SUCCEED)
TEST_ERROR;
@@ -14990,7 +14989,7 @@ error:
H5Pclose(dcpl_id);
H5Fclose(file_id);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_object_header_minimization_dcpl() */
@@ -15048,7 +15047,7 @@ test_h5s_block(void)
{
ret = H5Dwrite(dset_id, H5T_NATIVE_INT, H5S_ALL, H5S_BLOCK, H5P_DEFAULT, buf);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret == SUCCEED)
TEST_ERROR;
@@ -15111,7 +15110,7 @@ error:
H5Dclose(dset_id);
H5Fclose(file_id);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_h5s_block() */
@@ -15180,7 +15179,7 @@ test_h5s_plist(void)
ret = H5Pset_dataset_io_hyperslab_selection(dxpl_id, 0, H5S_SELECT_SET, &start, &stride, &count,
&block);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret == SUCCEED)
TEST_ERROR;
H5E_BEGIN_TRY
@@ -15189,7 +15188,7 @@ test_h5s_plist(void)
ret = H5Pset_dataset_io_hyperslab_selection(dxpl_id, 1, H5S_SELECT_NOOP, &start, &stride, &count,
&block);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret == SUCCEED)
TEST_ERROR;
H5E_BEGIN_TRY
@@ -15198,7 +15197,7 @@ test_h5s_plist(void)
ret =
H5Pset_dataset_io_hyperslab_selection(dxpl_id, 1, H5S_SELECT_SET, NULL, &stride, &count, &block);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret == SUCCEED)
TEST_ERROR;
H5E_BEGIN_TRY
@@ -15209,7 +15208,7 @@ test_h5s_plist(void)
&block);
stride = 1;
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret == SUCCEED)
TEST_ERROR;
H5E_BEGIN_TRY
@@ -15218,7 +15217,7 @@ test_h5s_plist(void)
ret =
H5Pset_dataset_io_hyperslab_selection(dxpl_id, 1, H5S_SELECT_SET, &start, &stride, NULL, &block);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret == SUCCEED)
TEST_ERROR;
@@ -15229,7 +15228,7 @@ test_h5s_plist(void)
/* H5S_PLIST for memory dataspace */
ret = H5Dwrite(dset_id, H5T_NATIVE_INT, H5S_PLIST, H5S_ALL, H5P_DEFAULT, buf);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret == SUCCEED)
TEST_ERROR;
@@ -15288,7 +15287,7 @@ test_h5s_plist(void)
ret = H5Pset_dataset_io_hyperslab_selection(dxpl_id_copy, H5S_MAX_RANK + 1, H5S_SELECT_OR, &start,
&stride, &count, &block);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret == SUCCEED)
TEST_ERROR;
@@ -15353,7 +15352,7 @@ error:
H5Dclose(dset_id);
H5Fclose(file_id);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_h5s_plist() */
@@ -15547,7 +15546,7 @@ error:
H5Dclose(dset_id);
H5Fclose(file_id);
}
- H5E_END_TRY;
+ H5E_END_TRY
return FAIL;
} /* end test_0sized_dset_metadata_alloc() */