diff options
author | David Young <dyoung@hdfgroup.org> | 2020-08-21 14:49:44 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-08-21 14:49:44 (GMT) |
commit | 2fe7d17a766faab80edb4f0e094f2dc3f8210d01 (patch) | |
tree | ec2da2c5beef67f6d3dfb04ab1c49d71ab9b8e59 /test | |
parent | 2f30671e8472d4d452b9bfb0d1670664288c660d (diff) | |
download | hdf5-2fe7d17a766faab80edb4f0e094f2dc3f8210d01.zip hdf5-2fe7d17a766faab80edb4f0e094f2dc3f8210d01.tar.gz hdf5-2fe7d17a766faab80edb4f0e094f2dc3f8210d01.tar.bz2 |
Avoid potential shadow-file clashes, call the shadow file `rw-shadow`.
Diffstat (limited to 'test')
-rw-r--r-- | test/vfd_swmr_addrem_writer.c | 3 | ||||
-rw-r--r-- | test/vfd_swmr_reader.c | 2 | ||||
-rw-r--r-- | test/vfd_swmr_remove_reader.c | 2 | ||||
-rw-r--r-- | test/vfd_swmr_remove_writer.c | 2 | ||||
-rw-r--r-- | test/vfd_swmr_sparse_reader.c | 2 | ||||
-rw-r--r-- | test/vfd_swmr_sparse_writer.c | 2 | ||||
-rw-r--r-- | test/vfd_swmr_writer.c | 2 |
7 files changed, 8 insertions, 7 deletions
diff --git a/test/vfd_swmr_addrem_writer.c b/test/vfd_swmr_addrem_writer.c index a8aefa9..51b2470 100644 --- a/test/vfd_swmr_addrem_writer.c +++ b/test/vfd_swmr_addrem_writer.c @@ -115,7 +115,8 @@ open_skeleton(const char *filename, unsigned verbose) config->max_lag = 5; config->writer = TRUE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + esnprintf(config->md_file_path, sizeof(config->md_file_path), + "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) diff --git a/test/vfd_swmr_reader.c b/test/vfd_swmr_reader.c index 706c894..ff31bdd 100644 --- a/test/vfd_swmr_reader.c +++ b/test/vfd_swmr_reader.c @@ -353,7 +353,7 @@ read_records(const char *filename, hbool_t verbose, FILE *verbose_file, config->max_lag = 5; config->writer = FALSE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + HDstrcpy(config->md_file_path, "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) { diff --git a/test/vfd_swmr_remove_reader.c b/test/vfd_swmr_remove_reader.c index 3515987..c7689c0 100644 --- a/test/vfd_swmr_remove_reader.c +++ b/test/vfd_swmr_remove_reader.c @@ -317,7 +317,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nseconds, config->max_lag = 5; config->writer = FALSE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + HDstrcpy(config->md_file_path, "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) diff --git a/test/vfd_swmr_remove_writer.c b/test/vfd_swmr_remove_writer.c index 2ebe96f..ae64ff0 100644 --- a/test/vfd_swmr_remove_writer.c +++ b/test/vfd_swmr_remove_writer.c @@ -108,7 +108,7 @@ open_skeleton(const char *filename, unsigned verbose, config->max_lag = 5; config->writer = TRUE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + HDstrcpy(config->md_file_path, "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) diff --git a/test/vfd_swmr_sparse_reader.c b/test/vfd_swmr_sparse_reader.c index 83fb886..4f87ac5 100644 --- a/test/vfd_swmr_sparse_reader.c +++ b/test/vfd_swmr_sparse_reader.c @@ -223,7 +223,7 @@ read_records(const char *filename, unsigned verbose, unsigned long nrecords, config->max_lag = 5; config->writer = FALSE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + HDstrcpy(config->md_file_path, "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) diff --git a/test/vfd_swmr_sparse_writer.c b/test/vfd_swmr_sparse_writer.c index 5722558..509a62c 100644 --- a/test/vfd_swmr_sparse_writer.c +++ b/test/vfd_swmr_sparse_writer.c @@ -108,7 +108,7 @@ open_skeleton(const char *filename, unsigned verbose) config->max_lag = 5; config->writer = TRUE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + HDstrcpy(config->md_file_path, "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) diff --git a/test/vfd_swmr_writer.c b/test/vfd_swmr_writer.c index 1d73dd6..1538ef3 100644 --- a/test/vfd_swmr_writer.c +++ b/test/vfd_swmr_writer.c @@ -117,7 +117,7 @@ open_skeleton(const char *filename, hbool_t verbose, FILE *verbose_file, config->max_lag = 5; config->writer = TRUE; config->md_pages_reserved = 128; - HDstrcpy(config->md_file_path, "./my_md_file"); + HDstrcpy(config->md_file_path, "./rw-shadow"); /* Enable VFD SWMR configuration */ if(H5Pset_vfd_swmr_config(fapl, config) < 0) |