diff options
author | Quincey Koziol <koziol@lbl.gov> | 2022-04-18 20:28:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-18 20:28:20 (GMT) |
commit | f875a73711ea125cbe67ea7d65facce669af96a4 (patch) | |
tree | e50857ae1fcdfc644a053c8aaec904ded9787dbd /test/cross_read.c | |
parent | 17be6c2574222bf146ddc01eb3c8e344b1efddd0 (diff) | |
download | hdf5-f875a73711ea125cbe67ea7d65facce669af96a4.zip hdf5-f875a73711ea125cbe67ea7d65facce669af96a4.tar.gz hdf5-f875a73711ea125cbe67ea7d65facce669af96a4.tar.bz2 |
Mirror vfd test fixes (#1629)
* Use the FAPL that was created earlier in the test (and delete an unused
variable). This allows 'make check-vfd' to pass with --enable-mirror-vfd.
* Check for testing directory before creating, to avoid warning from bash.
Clean out .libs directory before re-using it (after a failed test), to
remove any files generated by libtool.
* Committing clang-format changes
* Increment error count on failed file open and skip tests for VFDs that need
modified filenames.
* Skip the mirror VFD for 'make check-vfd' - the mirror VFD requires networking
configuration parameters and can't be provided for an automated test that
is configured with an environment variable.
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/cross_read.c')
-rw-r--r-- | test/cross_read.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/cross_read.c b/test/cross_read.c index cb71996..b8a2b46 100644 --- a/test/cross_read.c +++ b/test/cross_read.c @@ -229,8 +229,10 @@ check_file(char *filename) #endif /* Open the file. */ - if ((fid = H5Fopen(pathname, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) + if ((fid = H5Fopen(pathname, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) { + nerrors++; FAIL_STACK_ERROR; + } TESTING("regular dataset of LE DOUBLE"); nerrors += check_data_f(DATASETNAME, fid); @@ -357,6 +359,14 @@ main(void) h5_reset(); + /* + * Skip tests for VFDs that need modified filenames. + */ + if (h5_driver_uses_modified_filename()) { + HDputs(" -- SKIPPED for incompatible VFD --"); + HDexit(EXIT_SUCCESS); + } + HDputs("\n"); HDputs("Testing reading data created on Linux"); h5_fixname(FILENAME[1], H5P_DEFAULT, filename, sizeof(filename)); |