summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_group_writer.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-07-14 20:02:49 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-07-14 20:02:49 (GMT)
commit3d89d6ca4eced77f5cb4b2c6ad191c2cb8182b30 (patch)
tree60ac0839661d0b6ef3b963c85cb7537db6b9c303 /test/vfd_swmr_group_writer.c
parent30a62d138030e914da4a8e19771350617d9e8215 (diff)
downloadhdf5-3d89d6ca4eced77f5cb4b2c6ad191c2cb8182b30.zip
hdf5-3d89d6ca4eced77f5cb4b2c6ad191c2cb8182b30.tar.gz
hdf5-3d89d6ca4eced77f5cb4b2c6ad191c2cb8182b30.tar.bz2
Suppress the error-stack printouts while attempting to open and read an
attribute: failures are expected.
Diffstat (limited to 'test/vfd_swmr_group_writer.c')
-rw-r--r--test/vfd_swmr_group_writer.c9
1 files changed, 8 insertions, 1 deletions
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");