summaryrefslogtreecommitdiffstats
path: root/test/plugin.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-03-30 22:11:50 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-03-30 22:11:50 (GMT)
commit1eb4693aa895fa13e35173907f65f92051ff0cd5 (patch)
tree77faa22c6d0d8faa98654d23428a1d3ca0cf77f0 /test/plugin.c
parent8e663833939f5604c608ddaccdcb6cdb6d9d2003 (diff)
downloadhdf5-1eb4693aa895fa13e35173907f65f92051ff0cd5.zip
hdf5-1eb4693aa895fa13e35173907f65f92051ff0cd5.tar.gz
hdf5-1eb4693aa895fa13e35173907f65f92051ff0cd5.tar.bz2
HDFFV-10143 surround will fail with try block
Diffstat (limited to 'test/plugin.c')
-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();