From 3d89d6ca4eced77f5cb4b2c6ad191c2cb8182b30 Mon Sep 17 00:00:00 2001 From: David Young Date: Tue, 14 Jul 2020 15:02:49 -0500 Subject: Suppress the error-stack printouts while attempting to open and read an attribute: failures are expected. --- test/vfd_swmr_group_writer.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/vfd_swmr_group_writer.c b/test/vfd_swmr_group_writer.c index bc73857..08207db 100644 --- a/test/vfd_swmr_group_writer.c +++ b/test/vfd_swmr_group_writer.c @@ -201,6 +201,7 @@ write_group(state_t *s, unsigned int which) static bool verify_group_attribute(hid_t g, unsigned int which) { + estack_state_t es; unsigned int read_which; hid_t aid; char name[sizeof("attr-9999999999")]; @@ -210,15 +211,21 @@ verify_group_attribute(hid_t g, unsigned int which) dbgf(1, "verifying attribute %s on group %u equals %u\n", name, which, which); - if ((aid = H5Aopen(g, name, H5P_DEFAULT)) < 0) + es = disable_estack(); + if ((aid = H5Aopen(g, name, H5P_DEFAULT)) < 0) { + restore_estack(es); return false; + } if (H5Aread(aid, H5T_NATIVE_UINT, &read_which) < 0) { + restore_estack(es); if (H5Aclose(aid) < 0) errx(EXIT_FAILURE, "H5Aclose failed"); return false; } + restore_estack(es); + if (H5Aclose(aid) < 0) errx(EXIT_FAILURE, "H5Aclose failed"); -- cgit v0.12