summaryrefslogtreecommitdiffstats
path: root/test
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:14:25 (GMT)
commit774b1cfe79c92cb0048d89aaa741ca80c50b42c9 (patch)
treeefa999f2be5876597f970b0857c3cb222b62ffc5 /test
parent7c0bf0c41d11e47f394587d5095ad29375ae43bc (diff)
downloadhdf5-774b1cfe79c92cb0048d89aaa741ca80c50b42c9.zip
hdf5-774b1cfe79c92cb0048d89aaa741ca80c50b42c9.tar.gz
hdf5-774b1cfe79c92cb0048d89aaa741ca80c50b42c9.tar.bz2
HDFFV-10143 surround will fail with try block
Diffstat (limited to 'test')
-rw-r--r--test/plugin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/plugin.c b/test/plugin.c
index eab0de9..cdd172c 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();