summaryrefslogtreecommitdiffstats
path: root/test/cache_api.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-07-28 14:08:44 (GMT)
committerGitHub <noreply@github.com>2023-07-28 14:08:44 (GMT)
commit9ef2f993cfc7173712729fb40b34d1edae8509d9 (patch)
tree937a98f4d50cf0cca08fa105ae37589aedb8975c /test/cache_api.c
parentf563c2b926445f7a975553bc7742a38f42d3b6f4 (diff)
downloadhdf5-9ef2f993cfc7173712729fb40b34d1edae8509d9.zip
hdf5-9ef2f993cfc7173712729fb40b34d1edae8509d9.tar.gz
hdf5-9ef2f993cfc7173712729fb40b34d1edae8509d9.tar.bz2
Sync test dir w/ develop (#3303)
Diffstat (limited to 'test/cache_api.c')
-rw-r--r--test/cache_api.c40
1 files changed, 19 insertions, 21 deletions
diff --git a/test/cache_api.c b/test/cache_api.c
index 562d8dd..1752a43 100644
--- a/test/cache_api.c
+++ b/test/cache_api.c
@@ -21,7 +21,7 @@
/* global variable declarations: */
-const char *FILENAME[] = {"cache_api_test", NULL};
+static const char *FILENAME[] = {"cache_api_test", NULL};
/* macro definitions */
@@ -236,8 +236,7 @@ check_fapl_mdc_api_calls(unsigned paged, hid_t fcpl_id)
/* verify that we can access the internal version of the cache config */
if (pass) {
- if ((cache_ptr == NULL) || (cache_ptr->magic != H5C__H5C_T_MAGIC) ||
- (cache_ptr->resize_ctl.version != H5C__CURR_AUTO_SIZE_CTL_VER)) {
+ if (cache_ptr == NULL || cache_ptr->resize_ctl.version != H5C__CURR_AUTO_SIZE_CTL_VER) {
pass = FALSE;
failure_mssg = "Can't access cache resize_ctl.\n";
@@ -380,8 +379,7 @@ check_fapl_mdc_api_calls(unsigned paged, hid_t fcpl_id)
/* verify that we can access the internal version of the cache config */
if (pass) {
- if ((cache_ptr == NULL) || (cache_ptr->magic != H5C__H5C_T_MAGIC) ||
- (cache_ptr->resize_ctl.version != H5C__CURR_AUTO_SIZE_CTL_VER)) {
+ if (cache_ptr == NULL || cache_ptr->resize_ctl.version != H5C__CURR_AUTO_SIZE_CTL_VER) {
pass = FALSE;
failure_mssg = "Can't access cache resize_ctl.\n";
@@ -1642,7 +1640,7 @@ check_fapl_mdc_api_errs(void)
{
result = H5Pget_mdc_config((hid_t)-1, &scratch);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1680,7 +1678,7 @@ check_fapl_mdc_api_errs(void)
{
result = H5Pget_mdc_config(fapl_id, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1698,7 +1696,7 @@ check_fapl_mdc_api_errs(void)
{
result = H5Pget_mdc_config(fapl_id, &scratch);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1717,7 +1715,7 @@ check_fapl_mdc_api_errs(void)
{
result = H5Pset_mdc_config((hid_t)-1, &default_config);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1732,7 +1730,7 @@ check_fapl_mdc_api_errs(void)
{
result = H5Pset_mdc_config(fapl_id, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1747,7 +1745,7 @@ check_fapl_mdc_api_errs(void)
{
result = H5Pset_mdc_config(fapl_id, &(invalid_configs[i]));
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1872,7 +1870,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fget_mdc_config((hid_t)-1, &scratch);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1892,7 +1890,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fget_mdc_config(file_id, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1913,7 +1911,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fget_mdc_config(file_id, &scratch);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1936,7 +1934,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fset_mdc_config((hid_t)-1, &default_config);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1956,7 +1954,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fset_mdc_config(file_id, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -1976,7 +1974,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fset_mdc_config(file_id, &(invalid_configs[i]));
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -2004,7 +2002,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fget_mdc_hit_rate((hid_t)-1, &hit_rate);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -2024,7 +2022,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fget_mdc_hit_rate(file_id, NULL);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -2045,7 +2043,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Freset_mdc_hit_rate_stats((hid_t)-1);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {
@@ -2066,7 +2064,7 @@ check_file_mdc_api_errs(unsigned paged, hid_t fcpl_id)
{
result = H5Fget_mdc_size((hid_t)-1, &max_size, &min_clean_size, &cur_size, &cur_num_entries);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (result >= 0) {