hdf5/test
Dana Robinson 60e14b826a
File locks now work on Windows (#480)
* File locks now work on Windows

Uses LockFileEx() and UnlockFileEx(). Fixes HDFFV-10191 (partial).

* Committing clang-format changes

* Committing clang-format changes

* Fixes commenting in h5repack

* Reworks H5Fis_accessible()

H5Fis_accessible() created a new file handle and attempted to read
through it, which will fail when a file has been opened with an
exclusive lock on operating systems that have mandatory locks.

This change uses the same scheme we use in H5Fopen() to check if
the file is already open and only tries to read the file signature
if the file has not already been opened.

Also adds a test for this behavior.

* Committing clang-format changes

* Trivial change to force github to run actions

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2021-03-22 11:32:40 -05:00
..
testfiles Bring async branch to develop (#166) 2020-12-13 18:02:17 -06:00
accum_swmr_reader.c Update license url (#332) 2021-02-17 08:52:04 -06:00
accum.c Replaces checks for fork, etc. with checks for unistd.h (#457) 2021-03-11 15:34:55 -06:00
aggr.h5
app_ref.c Update license url (#332) 2021-02-17 08:52:04 -06:00
atomic_reader.c Update license url (#332) 2021-02-17 08:52:04 -06:00
atomic_writer.c Update license url (#332) 2021-02-17 08:52:04 -06:00
AtomicWriterReader.txt
bad_compound.h5
bad_offset.h5
be_data.h5
be_extlink1.h5
be_extlink2.h5
big.c Update license url (#332) 2021-02-17 08:52:04 -06:00
bittests.c Update license url (#332) 2021-02-17 08:52:04 -06:00
btree2.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
btree_idx_1_6.h5
btree_idx_1_8.h5
cache_api.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
cache_common.c Various clang tidy warning fixes (#448) 2021-03-10 12:41:34 -06:00
cache_common.h Changes found during merge to 1.12 (#414) 2021-03-04 06:29:10 -06:00
cache_image.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
cache_logging.c Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) 2021-03-10 12:42:35 -06:00
cache_tagging.c Update license url (#332) 2021-02-17 08:52:04 -06:00
cache.c Fixed clang-tidy readability-redundant-control-flow warnings (#428) 2021-03-05 08:51:01 -06:00
chunk_info.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
CMakeLists.txt Bring async branch to develop (#166) 2020-12-13 18:02:17 -06:00
CMakePassthroughVOLTests.cmake Update license url (#332) 2021-02-17 08:52:04 -06:00
CMakeTests.cmake Fix CMake error message location. (#478) 2021-03-19 21:20:11 -05:00
CMakeVFDTests.cmake Update license url (#332) 2021-02-17 08:52:04 -06:00
cmpd_dset.c Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) 2021-03-10 12:42:35 -06:00
cmpd_dtransform.c Bring async branch to develop (#166) 2020-12-13 18:02:17 -06:00
COPYING Update license url (#332) 2021-02-17 08:52:04 -06:00
cork.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
corrupt_stab_msg.h5
cross_read.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
dangle.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
deflate.h5
del_many_dense_attrs.c Update license url (#332) 2021-02-17 08:52:04 -06:00
direct_chunk.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
dsets.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
dt_arith.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
dtransform.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
dtypes.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
earray.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
efc.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
enc_dec_plist_cross_platform.c Update license url (#332) 2021-02-17 08:52:04 -06:00
enc_dec_plist.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
enum.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
err_compat.c Update license url (#332) 2021-02-17 08:52:04 -06:00
error_test.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
event_set.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
evict_on_close.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
extend.c Update license url (#332) 2021-02-17 08:52:04 -06:00
external_common.c Update license url (#332) 2021-02-17 08:52:04 -06:00
external_common.h Changes found during merge to 1.12 (#414) 2021-03-04 06:29:10 -06:00
external_env.c Update license url (#332) 2021-02-17 08:52:04 -06:00
external_fname.h Changes found during merge to 1.12 (#414) 2021-03-04 06:29:10 -06:00
external.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
family_v16_00000.h5
family_v16_00001.h5
family_v16_00002.h5
family_v16_00003.h5
farray.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
fheap.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
file_image_core_test.h5
file_image.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
filenotclosed.c Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) 2021-03-10 12:42:35 -06:00
filespace_1_6.h5
filespace_1_8.h5
fill18.h5
fill_old.h5
fillval.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
filter_error.h5
filter_fail.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
filter_plugin1_dsets.c Removed bad function pointer casts (#434) 2021-03-08 08:26:58 -06:00
filter_plugin2_dsets.c Removed bad function pointer casts (#434) 2021-03-08 08:26:58 -06:00
filter_plugin3_dsets.c Removed bad function pointer casts (#434) 2021-03-08 08:26:58 -06:00
filter_plugin4_groups.c Removed bad function pointer casts (#434) 2021-03-08 08:26:58 -06:00
filter_plugin.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
flush1.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
flush2.c Update license url (#332) 2021-02-17 08:52:04 -06:00
flushrefresh.c Update license url (#332) 2021-02-17 08:52:04 -06:00
flushrefreshTest.cmake Update license url (#332) 2021-02-17 08:52:04 -06:00
freespace.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
fsm_aggr_nopersist.h5
fsm_aggr_persist.h5
gen_bad_compound.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_bad_offset.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_bad_ohdr.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_bogus.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_bounds.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_cross.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_deflate.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_file_image.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_filespace.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_filters.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_mergemsg.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_new_array.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_new_fill.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_new_group.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_new_mtime.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_new_super.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_noencoder.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_nullspace.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_old_array.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_old_group.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_old_layout.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_old_mtime.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_plist.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_sizes_lheap.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_specmetaread.c Update license url (#332) 2021-02-17 08:52:04 -06:00
gen_udlinks.c Update license url (#332) 2021-02-17 08:52:04 -06:00
genall5.c Fixed clang-tidy readability-redundant-control-flow warnings (#428) 2021-03-05 08:51:01 -06:00
genall5.h Update license url (#332) 2021-02-17 08:52:04 -06:00
getname.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
gheap.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
group_old.h5
h5fc_ext1_f.h5
h5fc_ext1_i.h5
h5fc_ext2_if.h5
h5fc_ext2_sf.h5
h5fc_ext3_isf.h5
h5fc_ext_none.h5
h5test.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
h5test.h Fixed many -Wreserved-id-macro warnings by fixing header guard spelling (#361) 2021-02-22 22:29:56 -06:00
H5srcdir_str.h.in Update license url (#332) 2021-02-17 08:52:04 -06:00
H5srcdir.h Fixed many -Wreserved-id-macro warnings by fixing header guard spelling (#361) 2021-02-22 22:29:56 -06:00
hdfs.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
hyperslab.c Update license url (#332) 2021-02-17 08:52:04 -06:00
istore.c Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) 2021-03-10 12:42:35 -06:00
le_data.h5
le_extlink1.h5
le_extlink2.h5
lheap.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
links_env.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
links.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
Makefile.am Update license url (#332) 2021-02-17 08:52:04 -06:00
memleak_H5O_dtype_decode_helper_H5Odtype.h5
mergemsg.h5
mf.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
mirror_vfd.c Update license url (#332) 2021-02-17 08:52:04 -06:00
mount.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
mtime.c Update license url (#332) 2021-02-17 08:52:04 -06:00
multi_file_v16-r.h5
multi_file_v16-s.h5
noencoder.h5
none.h5
ntypes.c Update license url (#332) 2021-02-17 08:52:04 -06:00
null_vol_connector.c Update license url (#332) 2021-02-17 08:52:04 -06:00
null_vol_connector.h Changes found during merge to 1.12 (#414) 2021-03-04 06:29:10 -06:00
objcopy_ref.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
objcopy.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
ohdr.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
page_buffer.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
paged_nopersist.h5
paged_persist.h5
pool.c Update license url (#332) 2021-02-17 08:52:04 -06:00
POSIX_Order_Write_Test_Report.docx
POSIX_Order_Write_Test_Report.pdf
reserved.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
ros3.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
s3comms.c Update license url (#332) 2021-02-17 08:52:04 -06:00
set_extent.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
ShellTests.cmake Update license url (#332) 2021-02-17 08:52:04 -06:00
space_overflow.c Update license url (#332) 2021-02-17 08:52:04 -06:00
specmetaread.h5
stab.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
swmr_addrem_writer.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_check_compat_vfd.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_common.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_common.h Changes found during merge to 1.12 (#414) 2021-03-04 06:29:10 -06:00
swmr_generator.c Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) 2021-03-10 12:42:35 -06:00
SWMR_POSIX_Order_UG.txt
swmr_reader.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_remove_reader.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_remove_writer.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_sparse_reader.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_sparse_writer.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr_start_write.c Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) 2021-03-10 12:42:35 -06:00
SWMR_UseCase_UG.txt
swmr_writer.c Update license url (#332) 2021-02-17 08:52:04 -06:00
swmr.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
tarray.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
tarrold.h5
tattr.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
tbad_msg_count.h5
tbogus.h5
tcheck_version.c Suppresses the tcheck_version test's abort dialog on Windows (#477) 2021-03-17 14:23:07 -05:00
tchecksum.c Update license url (#332) 2021-02-17 08:52:04 -06:00
tconfig.c Update license url (#332) 2021-02-17 08:52:04 -06:00
tcoords.c Update license url (#332) 2021-02-17 08:52:04 -06:00
test_filter_plugin.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
test_filters_be.h5
test_filters_le.h5
test_mirror.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
test_usecases.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
test_vol_plugin.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testabort_fail.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testcheck_version.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testerror.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testexternal_env.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testflushrefresh.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testframe.c Update license url (#332) 2021-02-17 08:52:04 -06:00
testhdf5.c Update license url (#332) 2021-02-17 08:52:04 -06:00
testhdf5.h Update license url (#332) 2021-02-17 08:52:04 -06:00
testlibinfo.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testlinks_env.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testmeta.c Update license url (#332) 2021-02-17 08:52:04 -06:00
testswmr.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testvds_env.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
testvdsswmr.sh.in Update license url (#332) 2021-02-17 08:52:04 -06:00
tfile.c File locks now work on Windows (#480) 2021-03-22 11:32:40 -05:00
tgenprop.c Update license url (#332) 2021-02-17 08:52:04 -06:00
th5o.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
th5s.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
th5s.h5
theap.c Update license url (#332) 2021-02-17 08:52:04 -06:00
thread_id.c Update license url (#332) 2021-02-17 08:52:04 -06:00
tid.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
timer.c HD prefix updates in src/ and test/ 2020-10-23 17:13:05 -07:00
titerate.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
tlayouto.h5
tmeta.c Update license url (#332) 2021-02-17 08:52:04 -06:00
tmisc.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
tmtimen.h5
tmtimeo.h5
trefer_deprec.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
trefer_shutdown.c Clang-format of source files 2020-09-30 09:27:10 -05:00
trefer.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
trefstr.c Cleans up a couple of MSVC warnings in testhdf5 (#475) 2021-03-17 14:22:02 -05:00
tselect.c Cleans up a couple of MSVC warnings in testhdf5 (#475) 2021-03-17 14:22:02 -05:00
tsizeslheap.h5
tskiplist.c Update license url (#332) 2021-02-17 08:52:04 -06:00
tsohm.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttime.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttsafe_acreate.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttsafe_attr_vlen.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttsafe_cancel.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttsafe_dcreate.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttsafe_error.c Update license url (#332) 2021-02-17 08:52:04 -06:00
ttsafe.c Fixed clang-tidy readability-redundant-control-flow warnings (#428) 2021-03-05 08:51:01 -06:00
ttsafe.h Update license url (#332) 2021-02-17 08:52:04 -06:00
ttst.c Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) 2021-03-10 12:42:35 -06:00
tunicode.c Update license url (#332) 2021-02-17 08:52:04 -06:00
tvlstr.c Fixed all clang-tidy bugprone-suspicious-string-compare warnings (#451) 2021-03-10 12:42:35 -06:00
tvltypes.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
twriteorder.c Replaces checks for fork, etc. with checks for unistd.h (#457) 2021-03-11 15:34:55 -06:00
unlink.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
unregister.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
use_append_chunk_mirror.c Replaces checks for fork, etc. with checks for unistd.h (#457) 2021-03-11 15:34:55 -06:00
use_append_chunk.c Replaces checks for fork, etc. with checks for unistd.h (#457) 2021-03-11 15:34:55 -06:00
use_append_mchunks.c Replaces checks for fork, etc. with checks for unistd.h (#457) 2021-03-11 15:34:55 -06:00
use_common.c Replaces checks for fork, etc. with checks for unistd.h (#457) 2021-03-11 15:34:55 -06:00
use_disable_mdc_flushes.c Replaces checks for fork, etc. with checks for unistd.h (#457) 2021-03-11 15:34:55 -06:00
use.h Update license url (#332) 2021-02-17 08:52:04 -06:00
vds_env.c Update license url (#332) 2021-02-17 08:52:04 -06:00
vds_swmr_gen.c Update license url (#332) 2021-02-17 08:52:04 -06:00
vds_swmr_reader.c Update license url (#332) 2021-02-17 08:52:04 -06:00
vds_swmr_writer.c Update license url (#332) 2021-02-17 08:52:04 -06:00
vds_swmr.h Update license url (#332) 2021-02-17 08:52:04 -06:00
vds.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
vfd.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
vol_plugin.c Update clang config (#473) 2021-03-17 10:25:39 -05:00
vol.c Update clang config (#473) 2021-03-17 10:25:39 -05:00