summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-08-12 13:03:11 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-08-12 13:03:11 (GMT)
commitdca1733238c6f72d2707d280e893c027734ebc27 (patch)
treee899348674d5e7490d6c3797c437a3ef348a95fb /test
parent1008afc457e288d4f7186225d859c5a8fe361d9f (diff)
parent78c6be05a84f854074a4df2e10c15a56444e4015 (diff)
downloadhdf5-dca1733238c6f72d2707d280e893c027734ebc27.zip
hdf5-dca1733238c6f72d2707d280e893c027734ebc27.tar.gz
hdf5-dca1733238c6f72d2707d280e893c027734ebc27.tar.bz2
Merge pull request #2752 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:develop_minor to develop
* commit '78c6be05a84f854074a4df2e10c15a56444e4015': Fixes the splitter VFD test on Windows.
Diffstat (limited to 'test')
-rw-r--r--test/h5test.c10
-rw-r--r--test/vfd.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 497a5f2..022bfde 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -2067,13 +2067,13 @@ h5_compare_file_bytes(char *f1name, char *f2name)
int ret_value = 0; /* for error handling */
/* Open files for reading */
- f1ptr = HDfopen(f1name, "r");
+ f1ptr = HDfopen(f1name, "rb");
if (f1ptr == NULL) {
HDfprintf(stderr, "Unable to fopen() %s\n", f1name);
ret_value = -1;
goto done;
}
- f2ptr = HDfopen(f2name, "r");
+ f2ptr = HDfopen(f2name, "rb");
if (f2ptr == NULL) {
HDfprintf(stderr, "Unable to fopen() %s\n", f2name);
ret_value = -1;
@@ -2200,7 +2200,7 @@ h5_duplicate_file_by_bytes(const char *orig, const char *dest)
max_buf = 4096 * sizeof(char);
- orig_ptr = HDfopen(orig, "r");
+ orig_ptr = HDfopen(orig, "rb");
if (NULL == orig_ptr) {
ret_value = -1;
goto done;
@@ -2210,7 +2210,7 @@ h5_duplicate_file_by_bytes(const char *orig, const char *dest)
fsize = (hsize_t)HDftell(orig_ptr);
HDrewind(orig_ptr);
- dest_ptr = HDfopen(dest, "w");
+ dest_ptr = HDfopen(dest, "wb");
if (NULL == dest_ptr) {
ret_value = -1;
goto done;
@@ -2224,7 +2224,7 @@ h5_duplicate_file_by_bytes(const char *orig, const char *dest)
}
while (read_size > 0) {
- if(HDfread(dup_buf, read_size, 1, orig_ptr) != 1) {
+ if (HDfread(dup_buf, read_size, 1, orig_ptr) != 1) {
ret_value = -1;
goto done;
}
diff --git a/test/vfd.c b/test/vfd.c
index f1443c5..d849d96 100644
--- a/test/vfd.c
+++ b/test/vfd.c
@@ -2453,7 +2453,7 @@ run_splitter_test(const struct splitter_dataset_def *data,
SPLITTER_TEST_FAULT("files are not byte-for-byte equivalent\n");
}
- /* Verify existence of logfile iff appropriate */
+ /* Verify existence of logfile if appropriate */
logfile = fopen(vfd_config->log_file_path, "r");
if ( (TRUE == provide_logfile_path && NULL == logfile) ||
(FALSE == provide_logfile_path && NULL != logfile) )