hdf5/test
Mike McGreevy 39e3974628 [svn-r19798] Purpose:
Add additional error checking to catch erroneous user input.

Description:

    Attempting to retrieve a links's name by index in the case
    where the link is external and the file that the object is
    located in doesn't exist was causing a segmentation fault
    (in production) and an assertion failure (in debug).

    The segfault wasn't occuring until the metadata accumulator
    attempted a write, so I've added error checking higher in
    the pipeline in H5O_protect (where there was previously just
    an assert) to catch this. I've also added additional asserts
    in the H5F layer where there were none.

    Additionally, I added another case to the links.c test to
    test that this fails gracefully instead of segfaulting or 
    asserting out.

Tested:

    h5committest and gandalf (mac os x)
2010-11-17 10:08:33 -05:00
..
testfiles [svn-r19782] Fix CMake testing for links_env test which requires an environment variable at test run-time. Modified runTest.cmake file to allow optional ENV_VAR and ENV_VALUE to be passed. runTest.cmake requires a reference file, added links_env.out to testfiles folder. 2010-11-15 11:35:29 -05:00
accum.c [svn-r19623] Purpose: 2010-10-18 15:46:08 -05:00
app_ref.c [svn-r17838] Description: 2009-11-05 08:45:35 -05:00
be_data.h5
be_extlink1.h5
be_extlink2.h5
big.c [svn-r19795] Cleaned up some part of the code. It now works on all Unix and Windows 7 2010-11-16 14:17:04 -05:00
bittests.c
btree2.c [svn-r19005] Purpose: 2010-06-15 15:00:22 -05:00
cache_api.c [svn-r19096] Description: 2010-07-19 05:54:51 -05:00
cache_common.c [svn-r19114] Description: 2010-07-20 13:51:24 -05:00
cache_common.h [svn-r19096] Description: 2010-07-19 05:54:51 -05:00
cache_tagging.c [svn-r19114] Description: 2010-07-20 13:51:24 -05:00
cache.c [svn-r18926] Description: 2010-05-31 13:27:33 -05:00
chunk_info.c
CMakeLists.txt [svn-r19790] CMake: Correct Error tests. Add Deprecated Symbols option. 2010-11-16 11:38:40 -05:00
cmpd_dset.c [svn-r19272] Description: 2010-08-20 16:37:12 -05:00
COPYING
corrupt_stab_msg.h5
cross_read.c [svn-r18419] Description: 2010-03-18 07:23:04 -05:00
dangle.c [svn-r19697] Description: 2010-10-29 10:31:57 -05:00
deflate.h5
dsets.c [svn-r19396] Description: 2010-09-16 06:38:10 -05:00
dt_arith.c [svn-r19696] Bug 2008 - IBM Power6 Linux uses special conversion algorithms to convert some values from long 2010-10-28 14:08:31 -05:00
dtransform.c [svn-r19481] I'm backing out my fix for bug 1707 because there're some unresolved issues - r19441 and 19467. 2010-09-27 14:02:48 -05:00
dtypes.c [svn-r19313] Description: 2010-08-26 16:38:09 -05:00
earray.c [svn-r19114] Description: 2010-07-20 13:51:24 -05:00
enum.c [svn-r19481] I'm backing out my fix for bug 1707 because there're some unresolved issues - r19441 and 19467. 2010-09-27 14:02:48 -05:00
err_compat.c [svn-r19578] Bug fix for 1707 - H5Eset_auto causes a seg fault when an application uses -DH5_USE_16_API 2010-10-11 17:15:54 -05:00
error_test.c [svn-r19481] I'm backing out my fix for bug 1707 because there're some unresolved issues - r19441 and 19467. 2010-09-27 14:02:48 -05:00
extend.c
external.c [svn-r18419] Description: 2010-03-18 07:23:04 -05:00
family_v16_00000.h5
family_v16_00001.h5
family_v16_00002.h5
family_v16_00003.h5
farray.c [svn-r19005] Purpose: 2010-06-15 15:00:22 -05:00
fheap.c [svn-r19654] Description: 2010-10-21 08:08:44 -05:00
filespace_1_6.h5 [svn-r17582] Description: 2009-10-01 21:08:59 -05:00
filespace_1_8.h5 [svn-r17582] Description: 2009-10-01 21:08:59 -05:00
fill_old.h5
fillval.c [svn-r19272] Description: 2010-08-20 16:37:12 -05:00
filter_fail.c [svn-r19523] I added another test case - disabling chunk cache. H5Dwrite will fail instead of H5Dclose 2010-10-05 15:40:47 -05:00
flush1.c
flush2.c [svn-r19481] I'm backing out my fix for bug 1707 because there're some unresolved issues - r19441 and 19467. 2010-09-27 14:02:48 -05:00
freespace.c [svn-r19297] Description: 2010-08-25 15:27:07 -05:00
gen_bad_ohdr.c [svn-r18031] Description: 2009-12-17 17:21:08 -05:00
gen_bogus.c [svn-r18031] Description: 2009-12-17 17:21:08 -05:00
gen_cross.c
gen_deflate.c [svn-r18030] Description: 2009-12-17 10:07:35 -05:00
gen_filespace.c [svn-r18197] Description: 2010-01-29 23:29:13 -05:00
gen_filters.c
gen_mergemsg.c
gen_new_array.c
gen_new_fill.c
gen_new_group.c
gen_new_mtime.c
gen_new_super.c
gen_noencoder.c [svn-r18030] Description: 2009-12-17 10:07:35 -05:00
gen_nullspace.c
gen_old_array.c
gen_old_group.c
gen_old_layout.c
gen_old_mtime.c
gen_sizes_lheap.c [svn-r19076] Purpose: Fix bug 1951 2010-07-16 11:32:49 -05:00
gen_specmetaread.c [svn-r17624] Description: 2009-10-08 23:09:34 -05:00
gen_udlinks.c
getname.c [svn-r19237] Description: 2010-08-12 16:11:00 -05:00
gheap.c [svn-r19272] Description: 2010-08-20 16:37:12 -05:00
group_old.h5
h5test.c [svn-r19481] I'm backing out my fix for bug 1707 because there're some unresolved issues - r19441 and 19467. 2010-09-27 14:02:48 -05:00
h5test.h [svn-r19242] Description: 2010-08-16 16:04:53 -05:00
H5srcdir_str.h.in [svn-r18419] Description: 2010-03-18 07:23:04 -05:00
H5srcdir.h [svn-r18419] Description: 2010-03-18 07:23:04 -05:00
hyperslab.c [svn-r19272] Description: 2010-08-20 16:37:12 -05:00
istore.c [svn-r17980] Description: 2009-12-10 07:36:56 -05:00
le_data.h5
le_extlink1.h5
le_extlink2.h5
lheap.c [svn-r19076] Purpose: Fix bug 1951 2010-07-16 11:32:49 -05:00
links_env.c [svn-r19781] Fix for bug #1930: 2010-11-14 23:04:28 -05:00
links.c [svn-r19798] Purpose: 2010-11-17 10:08:33 -05:00
Makefile.am [svn-r19781] Fix for bug #1930: 2010-11-14 23:04:28 -05:00
Makefile.in [svn-r19781] Fix for bug #1930: 2010-11-14 23:04:28 -05:00
mergemsg.h5
mf.c [svn-r18197] Description: 2010-01-29 23:29:13 -05:00
mount.c
mtime.c [svn-r19278] Description: 2010-08-23 15:56:42 -05:00
noencoder.h5
ntypes.c [svn-r18664] Description: 2010-04-29 07:52:10 -05:00
objcopy.c [svn-r19272] Description: 2010-08-20 16:37:12 -05:00
ohdr.c [svn-r19654] Description: 2010-10-21 08:08:44 -05:00
pool.c [svn-r19272] Description: 2010-08-20 16:37:12 -05:00
reserved.c
set_extent.c [svn-r19352] Description: 2010-09-03 22:44:19 -05:00
space_overflow.c
specmetaread.h5 [svn-r17624] Description: 2009-10-08 23:09:34 -05:00
stab.c [svn-r19272] Description: 2010-08-20 16:37:12 -05:00
tarray.c [svn-r18419] Description: 2010-03-18 07:23:04 -05:00
tarrold.h5
tattr.c [svn-r19272] Description: 2010-08-20 16:37:12 -05:00
tbad_msg_count.h5
tbogus.h5
tcheck_version.c [svn-r17832] Bug fix:(sort of) 2009-11-04 17:08:49 -05:00
tchecksum.c
tconfig.c [svn-r18197] Description: 2010-01-29 23:29:13 -05:00
tcoords.c
test_filters_be.hdf5
test_filters_le.hdf5
testcheck_version.sh.in [svn-r18985] Test feature: (bugs 1919) 2010-06-08 13:22:11 -05:00
testerror.sh.in [svn-r19481] I'm backing out my fix for bug 1707 because there're some unresolved issues - r19441 and 19467. 2010-09-27 14:02:48 -05:00
testframe.c [svn-r19796] Bug 2091: remove all Metraowerks compiler code bracheted by __MWERKS__. 2010-11-16 16:40:04 -05:00
testhdf5.c [svn-r17351] Description: 2009-08-13 12:09:55 -05:00
testhdf5.h [svn-r18224] Description: 2010-02-09 17:32:28 -05:00
testlibinfo.sh.in [svn-r19471] Bug fix: 1961-- AIX 6.1 --enable-share did not work. 2010-09-22 17:53:43 -05:00
testlinks_env.sh.in [svn-r19783] Fix to the checkin for bug #1930. 2010-11-15 14:24:46 -05:00
testmeta.c
tfile.c [svn-r19402] Description: 2010-09-16 15:01:08 -05:00
tgenprop.c [svn-r18346] Description: 2010-02-27 15:08:03 -05:00
th5o.c
th5s.c [svn-r19472] Description: 2010-09-23 10:03:42 -05:00
th5s.h5
theap.c [svn-r17980] Description: 2009-12-10 07:36:56 -05:00
tid.c [svn-r19398] Descriptino: 2010-09-16 09:02:19 -05:00
titerate.c
tlayouto.h5
tmeta.c
tmisc.c [svn-r18650] Description: 2010-04-27 17:15:14 -05:00
tmtimen.h5
tmtimeo.h5
trefer.c [svn-r19237] Description: 2010-08-12 16:11:00 -05:00
trefstr.c [svn-r18388] Description: 2010-03-06 16:19:57 -05:00
tselect.c [svn-r19472] Description: 2010-09-23 10:03:42 -05:00
tsizeslheap.h5 [svn-r19076] Purpose: Fix bug 1951 2010-07-16 11:32:49 -05:00
tskiplist.c [svn-r17980] Description: 2009-12-10 07:36:56 -05:00
tsohm.c [svn-r19272] Description: 2010-08-20 16:37:12 -05:00
ttime.c
ttsafe_acreate.c [svn-r19367] Purpose: 2010-09-10 11:15:34 -05:00
ttsafe_cancel.c [svn-r19367] Purpose: 2010-09-10 11:15:34 -05:00
ttsafe_dcreate.c [svn-r19367] Purpose: 2010-09-10 11:15:34 -05:00
ttsafe_error.c [svn-r19481] I'm backing out my fix for bug 1707 because there're some unresolved issues - r19441 and 19467. 2010-09-27 14:02:48 -05:00
ttsafe.c [svn-r19367] Purpose: 2010-09-10 11:15:34 -05:00
ttsafe.h [svn-r19367] Purpose: 2010-09-10 11:15:34 -05:00
ttst.c [svn-r17980] Description: 2009-12-10 07:36:56 -05:00
tunicode.c [svn-r17980] Description: 2009-12-10 07:36:56 -05:00
tvlstr.c [svn-r19278] Description: 2010-08-23 15:56:42 -05:00
tvltypes.c [svn-r17351] Description: 2009-08-13 12:09:55 -05:00
unlink.c [svn-r17980] Description: 2009-12-10 07:36:56 -05:00
vfd.c [svn-r18197] Description: 2010-01-29 23:29:13 -05:00
vms_data.h5