summaryrefslogtreecommitdiffstats
path: root/test/filter_fail.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/filter_fail.c')
-rw-r--r--test/filter_fail.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/filter_fail.c b/test/filter_fail.c
index 37ba9bf..0044cf9 100644
--- a/test/filter_fail.c
+++ b/test/filter_fail.c
@@ -22,7 +22,7 @@
#define DIM 10
#define FILTER_CHUNK_DIM 2
-const char *FILENAME[] = {"filter_fail_with_cache", "filter_fail_without_cache", NULL};
+static const char *FILENAME[] = {"filter_fail_with_cache", "filter_fail_without_cache", NULL};
static size_t filter_fail(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_values, size_t nbytes,
size_t *buf_size, void **buf);
@@ -156,7 +156,7 @@ test_filter_write(char *file_name, hid_t my_fapl, hbool_t cache_enabled)
{
ret = H5Dwrite(dataset, H5T_NATIVE_INT, H5S_ALL, sid, H5P_DEFAULT, points);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
HDputs(" Data writing is supposed to fail because the chunk can't be written to file.");
@@ -177,7 +177,7 @@ test_filter_write(char *file_name, hid_t my_fapl, hbool_t cache_enabled)
{
ret = H5Dclose(dataset);
}
- H5E_END_TRY;
+ H5E_END_TRY
if (ret >= 0) {
H5_FAILED();
HDputs(" Dataset is supposed to fail because the chunk can't be flushed to file.");
@@ -205,7 +205,7 @@ error:
H5Dclose(dataset);
H5Fclose(file);
}
- H5E_END_TRY;
+ H5E_END_TRY
return -1;
} /* end test_filter_write() */
@@ -343,7 +343,7 @@ error:
H5Dclose(dataset);
H5Fclose(file);
}
- H5E_END_TRY;
+ H5E_END_TRY
return -1;
} /* end test_filter_read() */