summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/plugin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/plugin.c b/test/plugin.c
index b7ca52b..fca8916 100644
--- a/test/plugin.c
+++ b/test/plugin.c
@@ -838,7 +838,10 @@ test_filter_path_apis(void)
PASSED();
TESTING(" get (bounds exceed)");
- if ((pathlen = H5PLget(H5PL_MAX_PATH_NUM, NULL, 0)) > 0)
+ H5E_BEGIN_TRY {
+ pathlen = H5PLget(H5PL_MAX_PATH_NUM, NULL, 0);
+ } H5E_END_TRY
+ if (pathlen > 0)
TEST_ERROR
PASSED();