summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-06-11 21:24:30 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-06-11 21:24:30 (GMT)
commitff8f7e6da4a9d266dcf4b7c5a97a7366ec440bbe (patch)
tree2d0a4fe34b2a1e9ff8733d68c3adcaf0d50babd5 /test
parent56bc1ea53557bb6d95ad78a86a80e8a17914826f (diff)
downloadhdf5-ff8f7e6da4a9d266dcf4b7c5a97a7366ec440bbe.zip
hdf5-ff8f7e6da4a9d266dcf4b7c5a97a7366ec440bbe.tar.gz
hdf5-ff8f7e6da4a9d266dcf4b7c5a97a7366ec440bbe.tar.bz2
Limit every chunk cache to 1 slot and 1kB so that the test doesn't run
my dinky development server out of memory.
Diffstat (limited to 'test')
-rw-r--r--test/vfd_swmr_bigset_writer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/vfd_swmr_bigset_writer.c b/test/vfd_swmr_bigset_writer.c
index 859393b..685757a 100644
--- a/test/vfd_swmr_bigset_writer.c
+++ b/test/vfd_swmr_bigset_writer.c
@@ -696,6 +696,9 @@ main(int argc, char **argv)
if (ret < 0)
errx(EXIT_FAILURE, "H5Pset_file_space_strategy");
+ if (H5Pset_cache(fapl, 0, 1, 1024, 1.0) < 0)
+ errx(EXIT_FAILURE, "H5Pset_cache");
+
if (writer)
s.file = H5Fcreate(s.filename, H5F_ACC_TRUNC, fcpl, fapl);
else