Commit Graph

304 Commits

Author SHA1 Message Date
Larry Knox
79613e3858 Merge pull request #2799 in HDFFV/hdf5 from ~BMRIBLER/hdf5_bmr2020:hdf5_bmr2020_addrsani_110 to hdf5_1_10
* commit 'ede1b9b1dd53caad6dfce8ec7bc4aa7b3dbce62c':
  Fix HDFFV-11101
2020-08-18 08:04:22 -05:00
Larry Knox
a99b7336c7 Merge pull request #2772 in HDFFV/hdf5 from ~BMRIBLER/hdf5_bmr:hdf5_bmr_HDFFV-10933_110 to hdf5_1_10
* commit '538bdb35ae932a1445f32a04e8173f8805d404f8':
  Updated for HDFFV-10933
  Fixed HDFFV-10933
2020-08-18 08:03:53 -05:00
Binh-Minh Ribler
ede1b9b1dd Fix HDFFV-11101
Description
    Added initialization to local structs in the src function
    H5MF_settle_raw_data_fsm() and the test function test_bt2_hdr_fd()
    to prevent the following error in two different occurrences:
        MemorySanitizer: use-of-uninitialized-value
Platforms tested:
    Linux/64 (jelly)
2020-08-18 00:49:09 -05:00
Dana Robinson
25520640b2 Misc normalizations with develop 2020-08-14 18:59:24 -07:00
Binh-Minh Ribler
d7772d6c69 Fixed HDFFV-10933
Description:
    Fixed to allow the creation of a dataset when the combination of type,
    space, etc doesn't work for filter and the filter is optional. Currently,
    it was supposed to be skipped as indicated in the documentation, but it
    was not skipped and the creation failed.
    The function H5Z_ignore_filters was added and used in H5D__create.
Platforms tested:
    Linux/64 (jelly)
2020-08-14 16:17:08 -05:00
Dana Robinson
78931a0d83 Brought the dsets test in line with develop. Brings over the fix
for 0-size dataset metadata allocation.
2020-05-20 08:57:20 -07:00
Dana Robinson
67983bc431 Updated code in H5Xtest.c files and associated tests.
Reverted overlong-strings warning that gives jam issues.
2020-05-18 05:26:32 -07:00
kmu
6710ed5e0a Merge branch 'hdf5_1_10' of https://git.hdfgroup.org/scm/~kmu/hdf5 into hdf5_1_10 2020-01-09 16:16:23 -06:00
Kimmy Mu
de28f691ba merge intel warning fix 2020-01-09 16:15:38 -06:00
Dana Robinson
887aa3d05d Merge of --Wc++-compat changes from develop 2020-01-08 19:40:32 -08:00
Allen Byrne
efaf7dea67 HDFFV-10903 merge dev changes to 1.10 2019-09-18 12:27:15 -05:00
Allen Byrne
a873d149e5 Cleanup when merging to other branches 2019-07-30 16:58:24 -05:00
Jacob Smith
00f835f640 Fix fapl passed into h5_fixname() calls in minimized tests.
Fix creation of duplicate, unclosed FAPL.
Fix wrong statement-string after TEST_ERROR macro (refactoring mistake).
2019-01-07 17:04:50 -06:00
Jacob Smith
e1d865a11d Remove "bad" statements from end of TEST_ERROR.
Formerly arguments to FAIL_PUTS_ERROR.
2019-01-04 11:35:50 -06:00
Jacob Smith
5b32111a26 Add semicolon at end of TEST_ERROR() invocation for consistency. 2019-01-04 09:06:38 -06:00
Jacob Smith
8e5bdd64d9 Change FAIL_PUTS_ERROR to TEST_ERROR.
Remove VOL-related merge cruft.
2019-01-03 23:09:27 -06:00
Jacob Smith
a8dc9793cb Incoporate minimized dataset headers code and tests. 2018-12-31 15:02:16 -06:00
Binh-Minh Ribler
e79ea792df Moved tests to another file
Description:
    Moved the test function test_get_chunk_info from dsets.c to chunk_info.c
    because chunk_info.c was created for the purpose of testing chunk information.
Platforms tested:
    Linux/64 (jelly)
2018-11-07 16:15:20 -06:00
Binh-Minh Ribler
471917c638 Updated new API functions
Description:
    - Per Vailin's review, revised H5Dget_chunk_info_by_coord to handle
      non-existing chunk and H5Dget_num_chunks and H5Dget_chunk_info to
      handle dataset with no data.
    - Addressed other review comments
    - Note that additional tests will be added as we need to send users
      these functions asap for feedback.
Platforms tested:
    Linux/64 (jelly)
    Linux/64 (platypus)
    Darwin (osx1011test)
2018-11-04 19:54:41 -06:00
Binh-Minh Ribler
0b321904a3 New API functions
Description:
    Added functions to query chunk information:

        H5Dget_num_chunks(dset_id, fspace_id, *nchunks)
            Gets the number of written chunks that intersect with the given
            dataspace.  However, in this version, the intersection is not
            yet completed.  Thus, the number of all written chunks will be
            returned.

        H5Dget_chunk_info_by_coord(dset_id, *coord, *filter_mask, *addr, *size)
            Given a chunk's coordinates, returns the chunk's filter, address,
            and size.

        H5Dget_chunk_info(dset_id, fspace_id, index, *coord, *filter_mask, *addr, *size)
            Given a chunk's index, returns the chunk's coordinates, filter,
            address, and size.  The chunk belongs to a set of chunks that have
            nonempty intersection with the specified dataspace.  However, in
            this version, the intersection is not yet completed, and the index
            is of all the written chunks.

Platforms tested:
    Linux/64 (jelly)
    Linux/64 (platypus)
    Darwin (osx1011test)
2018-10-29 09:52:50 -05:00
Vailin Choi
b178d80be0 Changes made based on feedback from pull request #1039. 2018-05-14 12:26:48 -05:00
Vailin Choi
e6bc326ec0 Fix for HDFFV-10180 Performance issues with H5Oget_info. 2018-04-24 15:10:13 -05:00
Quincey Koziol
d812c6fe60 Cleanup API context function usage. 2018-03-18 22:51:19 -05:00
Quincey Koziol
f38864920d Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into merge_func_enter_vol
Plus initial steps toward merging API context push into FUNC_ENTER_API* macros
2018-03-18 18:36:49 -05:00
Quincey Koziol
4a17aff408 Add API context interface and use it throughout the library. 2018-03-15 16:54:30 -05:00
Binh-Minh Ribler
39e3da7563 Improving tests
Description:
    - Added test for version bounds with nested datatypes
    - Added script for additional version bound test in h5repack
    - Cleaned up tests for consistency
    - Removed extra included header files
Platforms tested:
    Linux/64 (jelly)
    Linux/64 (moohan)
    Darwin (osx1010test)
2018-02-17 16:18:37 -06:00
Allen Byrne
41d541f1c2 More includes cleanup 2018-02-14 11:14:26 -06:00
Binh-Minh Ribler
0a61befddc Additional tests
Description:
    - Revised and add more variety to version bound tests per review
    - Revised gen_bounds.c per review
Platforms tested:
    Linux/64 (jelly)
    Linux/32 (jam)
    Darwin (osx1010test)
2018-02-13 11:05:08 -06:00
Allen Byrne
637a8f7562 Correct linkage of filters and other libs 2017-11-16 09:04:51 -06:00
Allen Byrne
c577a5e995 HDFFV-10297 update calls to H5Zfilter_avail 2017-10-09 17:00:15 -05:00
Vailin Choi
8935c921f7 Fix for HDFFV-10217 infinite loop in H5VM_power2up().
The function H5VM_power2up() returns the next power of 2 for n.
When n exceeds 2^63, it overflows and becomes 0 causing the infinite looping.
The fix ensures that the function checks for n >= 2^63 and returns 0.
2017-07-10 03:22:48 -05:00
Dana Robinson
1e9354bcf5 Merge branch 'develop' into windows_open 2017-05-31 15:07:49 -07:00
Dana Robinson
18ae45027c Fixed additional minor warnings. 2017-05-25 08:42:18 -04:00
lrknox
c8a5520d3a Call to H5Dopen has H5dopen2 arguments at line 12704 of test/dsets.c -
changed to H5Dopen2 to fix failure with --with-default-api-version=v16
configure option.
2017-05-10 14:44:58 -05:00
Vailin Choi
d436db6c6e Fix for the two issues reported in HDFFV-10051
Modifications made based on the review comments from pull request #494
Tested on moohan, mayll, kituo, platypus, ostrich, osx1010test, quail, emu.
2017-05-08 22:14:20 -05:00
Vailin Choi
6a4f1187cc Fix for the two issues reported in HDFFV-10051:
(1) Repeated open/close of a compact dataset fails due to the
increment of ndims in the dataset structure for every open.
--This is done only for chunked dataset via H5D__chunk_set_sizes().
(2) layout "dirty" flag for a compact dataset is not reset
properly after flushing the data at dataset close.
--Reset the "dirty" flag before flushing the message to the object header
via H5O_msg_write().
Tested on moohan, kituo, platypus, ostrich, osx1010test, quail, emu.
2017-05-06 23:40:44 -05:00
Dana Robinson
734aebc395 Rework of the POSIX file open permissions and macros to clean up
HDopen() calls.

Also fixed a minor const warning in the core VFD.
2017-04-28 18:13:22 -04:00
Dana Robinson
d3b664b6a7 Changed the Windows POSIX open() file permissions to be correct
according to MSDN. Partial fix for HDFFV-9630.
2017-04-28 08:11:29 -07:00
Larry Knox
89fbe00dec Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10
* commit '54957d37f5aa73912763dbb6e308555e863c43f4':
  Commit copyright header change for src/H5PLpkg.c which was added after running script to make changes.
  Add new files in release_docs to MANIFEST. Cimmit changes to Makefile.in(s) and H5PL.c that resulted from running autogen.sh.
  Merge pull request #407 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10_1 to hdf5_1_10_1
  Change copyright headers to replace url referring to file to be removed and replace it with new url for COPYING file.
2017-04-25 16:05:36 -05:00
Quincey Koziol
0313cbb91d Final merge of page buffering branch to develop 2017-03-13 21:30:37 -07:00
Quincey Koziol
5df52404bc Misc. small cleanups to sync against incoming page buffering changes. 2017-03-02 06:24:46 -08:00
Quincey Koziol
fc482f126f Bring over tweak for missing environment variable. 2016-12-18 00:59:36 -08:00
Quincey Koziol
64a339183f Bring SWMR support in to the main development branch. (Finally!) More tests
and the tool and API wrappers will be coming in over the weekend.
2016-12-02 08:07:04 -08:00
Frank.Willmore
526bcc242d Changes to be committed:
modified:   bittests.c
	modified:   cmpd_dset.c
	modified:   dsets.c
	modified:   dt_arith.c
	modified:   dtypes.c
	modified:   extend.c
	modified:   fillval.c
	modified:   filter_fail.c
	modified:   flush1.c
	modified:   gen_cross.c
	modified:   hyperslab.c
	modified:   istore.c
	modified:   links.c
	modified:   links_env.c
	modified:   objcopy.c
	modified:   plugin.c
	modified:   tcheck_version.c
	modified:   unlink.c
	modified:   unregister.c

Minor fixes to replace numeric exit codes with MACRO declarations. Not all codes found were boolean, and those cases were not changed.
2016-10-25 09:53:44 -05:00
Dana Robinson
5309971949 Fixed Windows dsets.c test failure.
A 'static' keyword was removed from an array that needs it on Windows
during a warning removal overhaul. Replacing it fixes the error.

Tested on: 64-bit Windows 7 w/ VS 2015
2016-10-14 15:45:38 -04:00
Dana Robinson
9d4cbecb2f Revert "Fixed Windows test failures."
This reverts commit f1dcda5c8e.
2016-10-14 15:42:55 -04:00
derobins
f1dcda5c8e Fixed Windows test failures.
Replaced a static keyword that was deleted during a warnings overhaul.

Tested on 64-bit Visual Studio 2015
2016-10-14 15:32:27 -04:00
Quincey Koziol
5a78801830 Clean up hardcoded constants and check return values better. (Comments from
group code review)
2016-09-29 13:17:55 -07:00
Quincey Koziol
fa66428a6d Description:
Further warning cleanups: from 667 warnings to 503.
2016-09-27 10:29:16 -07:00
Quincey Koziol
bb19817c9f [svn-r30189] Description:
Clean up more warnings: drop the warning count from ~1310 down to ~940,
with only 31 types of warnings in 148 files (down from 38 types in 167 files).

Tested on:
    MacOSX/64 10.11.5 (amazon) w/serial & parallel
    (h5committest forthcoming)
2016-07-17 19:18:42 -05:00