summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
Commit message (Collapse)AuthorAgeFilesLines
* Change thread IDs to uint64_t from unsigned long, per Quincey's suggestion.David Young2020-05-061-1/+1
| | | | | Fix a typo in the H5TS_thread_init() comment and reword some ID properties.
* Replace pthread_self_ulong() with H5TS_thread_id(). The POSIX ThreadsDavid Young2020-05-061-3/+1
| | | | | implementation ought to be portable to any system that has POSIX Threads. On Windows, I use the same API call as before.
* Squashed commit of the following:David Young2020-01-311-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit ff7a9a34de2fcd78f5d32a1532f3d0e224b20d94 Author: Kimmy Mu <kmu@hdfgroup.org> Date: Wed Jan 29 14:12:18 2020 -0600 Merge pull request #2324 in HDFFV/hdf5 from ~KMU/hdf5:hdf5_1_12 to hdf5_1_12 * commit '781fa57f6ee816e037dd12fff02d37ff7ec9c2b1': pick up missing piece from merge Merge pull request #2311 in HDFFV/hdf5 from ~KMU/hdf5:misc to develop remove redundent definition Merge pull request #2311 in HDFFV/hdf5 from ~KMU/hdf5:misc to develop Merge pull request #2311 in HDFFV/hdf5 from ~KMU/hdf5:misc to develop Merge pull request #2315 in HDFFV/hdf5 from ~KMU/hdf5:develop to develop missing prototype warning prototype issue Merge pull request #2306 in HDFFV/hdf5 from ~KMU/hdf5:develop to develop Merge pull request #2300 in HDFFV/hdf5 from ~KMU/hdf5:squashed_cast to develop Merge pull request #2291 in HDFFV/hdf5 from ~KMU/hdf5:bugfix/uninitialized to develop Merge pull request #2295 in HDFFV/hdf5 from ~KMU/hdf5:bugfix/float to develop Merge pull request #2292 in HDFFV/hdf5 from ~KMU/hdf5:bugfix/prototype to develop Merge pull request #2094 in HDFFV/hdf5 from ~KMU/hdf5:bugfix/unused to develop commit 9f3d808c05d2a3b308f32c958c6671fcac0a432c Author: David Young <dyoung@hdfgroup.org> Date: Wed Jan 29 11:43:55 2020 -0600 testpar/t_2Gio.c: Fix a typo that I think was introduced by a previous warnings PR. An array element was assigned to itself---shape[2]Â =Â shape[2];---instead of being assigned to chunk[2]. fortran/src/H5Pf.c: move conditional compilation controlled by H5_NO_DEPRECATED_SYMBOLS outside of a function for readability. fortran/src/H5match_types.c: put a variable's declaration under the same conditional compilation (H5_FORTRAN_HAVE_C_LONG_DOUBLE) as its use. For now, skip compilation of some unused debug dump routines in the JNI. While I'm in the JNI, delete a set-but-unused variable. src/H5Z.c: condition a variable declaration on H5_NO_DEPRECATED_SYMBOLS so that it's not declared but unused or vice versa. test/cache_common.h: add an #include in to get some symbols we need to avoid implicit declaration warnings. test/dsets.c: use a more conventional conditional-compilation syntax. test/dt_arith.c, test/fillval.c: initialize a bunch of uninitialized variables before use. test/vfd.c: pass the expected type of `void **` to posix_memalign(3) instead of `int **`. testpar/t_bigio.c: explicitly compare with 0 instead of using ! when "equal to 0?" is the question not "is false?" Repair some indentation while I'm here. testpar/testpar.h: repair misaligned line-continuation backslashes in a macro that probably should be a function so that we don't have to fiddle with the line continuation to begin with. tools/src/h5repack/h5repack_main.c: fix some compiler fussing about enums. tools/test/perform/pio_engine.c: the compiler fusses if you cast a function call returning double directly to off_t. It's ok if you cast a variable that's a double to off_t, however. Write and use a new function, sqrto(), to avoid the cast warnings. commit 43a4b80b21c0329fbc1f9a0e2854795189f0bb50 Author: David Young <dyoung@hdfgroup.org> Date: Wed Jan 29 10:47:30 2020 -0600 Reduce casts of HDcalloc()/HDmalloc() that -Wc++-compat required. Reduce gratuitous casts---e.g., (size_t)1. Use the right format string for a pointer. In the H5C sanity checks, change a "size increase" variable from ssize_t (too narrow) to int64_t (wide enough). Parenthesize every appearance of `storage` in the macro `H5D_CHUNK_STORAGE_INDEX_CHK(storage)` so that you can pass in an expression like &sc and it works properly. Disallow re-assignment of the `dset` parameter to H5D__chunk_init() because it helped assure me that it's safe to replace the repeating expression `&dset->shared->layout.storage.u.chunk` with `sc` throughout. Replace lengthy expressions such as `&dset->shared->layout.storage.u.chunk` with `sc` throughout several functions in H5Dchunk.c ISTR that the compiler warned that `sc` was declared but unused in a couple of functions, and then I found that `sc` could be used in many places. Maybe the disused `sc` appeared because a bunch of code was copied and pasted, I don't know. Anyway, it's a lot tighter code now that I use `sc`. In H5D__chunk_update_old_edge_chunks() and H5D__chunk_delete() I actually expand `sc` and another temporary variable, `pline`, because they're used only in !defined(NDEBUG) code. This squashes unused-variable warnings in the defined(NDEBUG) configuration. Don't drop the `volatile` qualification with a cast in tools/src/h5import/h5import.c. commit 035bfa0769a4012881fc659b673bacf44d146537 Author: David Young <dyoung@hdfgroup.org> Date: Tue Jan 28 20:35:28 2020 -0600 Reduce differences between my -Werror branch and `develop`: Rename index -> idx, fileno -> fnumber, fileno -> fno to avoid GCC shadowed declaration warnings about index(3). Convert #pragma GCC diagnostic push/pop/ignored to the HDF5 library's H5_GCC_DIAG_OFF()/H5_GCC_DIAG_ON() macros.
* Merge pull request #2238 in HDFFV/hdf5 from ~KMU/hdf5:hdf5_1_12 to hdf5_1_12Kimmy Mu2020-01-241-2/+1
|\ | | | | | | | | | | | | * commit '48cc850199901c5b67a40183262f4ead975b884f': fix test assert fail error Merge pull request #2071 in HDFFV/hdf5 from ~KMU/hdf5:bugfix/intel_warnings to develop Merge pull request #2234 in HDFFV/hdf5 from ~KMU/hdf5:bugfix/intel_warnings to develop
| * Merge pull request #2071 in HDFFV/hdf5 from ~KMU/hdf5:bugfix/intel_warnings ↵Kimmy Mu2020-01-081-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to develop * commit '0a2bb11b248df6841daabca3970df5d8504adfc7': address problems from comments fix and address comments change according to previous comments add missing piece remove unnecessary check macro fix intel compile warnings Revert "fix warnings from Intel compiler" Revert "fix warnings and some text alignment" Revert "let hdf5 pick up the right compiler in Intel environment" Revert "fix issues from previous PR comments" Revert "using a different MACRO" using a different MACRO fix issues from previous PR comments let hdf5 pick up the right compiler in Intel environment fix warnings and some text alignment fix warnings from Intel compiler
* | Squashed commit of the token_refactoring branch:Dana Robinson2020-01-191-2/+2
|/
* Yanked -Wc++-compat from the flags used to build the C library in bothDana Robinson2019-12-161-4/+4
| | | | the Autotools and CMake.
* Revert "Merge branch 'hdf5_1_12' of ↵Jerome Soumagne2019-12-091-2/+1
| | | | | | | https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into hdf5_1_12" This reverts commit 9f9336a5bd541752f472bab4c93da8de89f862cd, reversing changes made to 437a1919e7ba60fe75a33a466d264183a0255319.
* Merged HDFFV-10929_2GB_testing to hdf5_1_12Richard Warren2019-12-061-1/+2
|
* fix get gethostname for windowsAllen Byrne2019-08-281-1/+1
|
* Add HD prefix to testsAllen Byrne2019-08-151-67/+67
|
* Merge reconciliation and VFD test fixesAllen Byrne2019-08-041-2/+0
|
* Updates to warnhist script, along with a few cleanups, and add some commentsQuincey Koziol2019-07-101-1/+20
| | | | to warning cleanups that are a bit obscure.
* Add support for GCC9, update warnhist script, and clean up warnings.Quincey Koziol2019-07-031-1/+1
|
* Missed an env check before strcmp.Dana Robinson2019-04-291-1/+1
|
* Fix for split VFD and file cleanup when testing H5Fis_hdf5Dana Robinson2019-04-261-4/+26
| | | | and H5Fis_accessible in tfile.c.
* Improvements to the H5Fis_accessible() and H5Fis_hdf5() testsDana Robinson2019-04-251-11/+45
| | | | | | in tfile.c. * General code tidying. * Expanded tests to work with multi-file VFDs.
* Set V112 as the latest format and extend the arrays of version bounds.Vailin Choi2019-04-041-0/+25
|
* Specify the default VOL connector to use with an environment variable.Quincey Koziol2019-03-101-118/+0
| | | | | | | | This implicitly adds support for changing the VOL connector for command-line tools or any application linked with the library. Also, add 'make check-vol' support for all directories, clearing up necessary issues in testing scripts, etc.
* Merge branch 'develop' into c_stdlib_posix_call_cleanupDana Robinson2019-02-191-13/+39
|\
| * Work around compiler fussiness on platypus.Quincey Koziol2019-01-111-13/+39
| |
* | C and POSIX call cleanupDana Robinson2019-01-111-6/+6
|/
* Corrected comment in src/H5VLint.c, fixed pass-through info size inQuincey Koziol2019-01-061-0/+44
| | | | | | | src/H5VLpassthru.c, switched to stashing VOL connector ID & info in API context (in src/H5CX.c, src/H5CXprivate.h, src/H5F.c, src/H5Fint.c, and src/H5Fefc.c), patched up all sorts of issues in the tests, to make them work with 'check-vfd' (and 'check-vol' again).
* Merge branch 'develop' into openmpi_tweaksDana Robinson2018-12-311-43/+4
|\
| * Merge branch 'develop' into dset_ohdr_minimizeJacob Smith2018-12-271-2/+2
| |\
| * \ Merge branch 'develop' of ↵Jacob Smith2018-12-191-14/+19
| |\ \ | | | | | | | | | | | | https://bitbucket.hdfgroup.org/scm/~jake.smith/hdf5 into dset_ohdr_minimize
| * \ \ Merge branch 'develop' into dset_ohdr_minimizeJacob Smith2018-12-181-6/+9
| |\ \ \
| * \ \ \ Merge branch 'develop' into dset_ohdr_minimizeJacob Smith2018-12-121-155/+269
| |\ \ \ \
| * | | | | Remove redundant code and refactorJacob Smith2018-09-121-43/+4
| | | | | |
* | | | | | Added a shell script so we can run the parallel flush testDana Robinson2018-12-201-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | on OpenMPI.
* | | | | Correct core VFD to run with a 1MB increment instead of a 1 byte increment!Quincey Koziol2018-12-191-2/+2
| |_|_|/ |/| | |
* | | | Updates the autotools tests to also emit the VOL connectorDana Robinson2018-12-161-14/+19
| |_|/ |/| | | | | | | | for each test.
* | | Fix plugin code from referencing invalid key ID value, and also switch fromQuincey Koziol2018-12-131-6/+9
| |/ |/| | | | | | | strtok() to strtok_r() to avoid possible interference with / to application use of strtok().
* | Add a couple of missing prototypes for static routines, along with updatingQuincey Koziol2018-11-301-6/+6
| | | | | | | | a comment from VOL plugin -> connector.
* | Add support for "make check-vol", along with a few minor cleanups, etc.Quincey Koziol2018-11-291-2/+11
| |
* | Refactor infrastructure for setting FAPL information from environmentQuincey Koziol2018-11-281-147/+213
| | | | | | | | | | | | variables during testing, including connecting native, pass-through, and dynamically loaded VOL connectors. Also bring native and pass-through VOL connectors into alignment, removing the "H5VLnative_private.h" header.
* | Updates after merging changes from develop.Quincey Koziol2018-10-261-5/+5
| |
* | Updates to the VOL ID and object API calls.Dana Robinson2018-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This brings the H5VL code in line with the H5I code regarding naming, parameter order, etc. Several public API calls were affected by this change. These changed names to reflect their use with VOL drivers: H5VLregister() --> H5VLregister_driver() H5VLregister_by_name() --> H5VLregister_driver_by_name() H5VLunregister() --> H5VLunregister_driver() H5VLis_registered() --> H5VLis_driver_registered() This call was renamed to match H5Iregister(). The order of the first two parameters also reversed and the object pointer is now const. H5VLobject_register() --> H5VLregister()
* | VOL FEATUREDana Robinson2018-10-101-0/+43
| |
* | Normalization with vol_integration (test code and H5Xtest.c)Dana Robinson2018-09-201-7/+3
|/
* Changes made based on feedback from pull request #1039.Vailin Choi2018-05-141-1/+1
|
* Fix for HDFFV-10180 Performance issues with H5Oget_info.Vailin Choi2018-04-241-2/+2
|
* Normalization with VOL integration branch.Dana Robinson2017-12-051-65/+42
|
* Added a test for VFD IDs to testhdf5.Dana Robinson2017-07-011-0/+100
| | | | | | | This required adding some code to generate a fake VFD class to pass to H5FDregister(). Also, a bunch of whitespace and comment tidying.
* Rework of the POSIX file open permissions and macros to clean upDana Robinson2017-04-281-2/+2
| | | | | | HDopen() calls. Also fixed a minor const warning in the core VFD.
* Changed the Windows POSIX open() file permissions to be correctDana Robinson2017-04-281-2/+2
| | | | according to MSDN. Partial fix for HDFFV-9630.
* Merge pull request #426 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to ↵Larry Knox2017-04-251-6/+4
| | | | | | | | | | 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.
* Deleted an extraneous remove() call from a test functionDana Robinson2017-02-081-3/+1
| | | | that might be causing the flushrefresh test to fail.
* Bring new/updated tests from revise+chunks branch: flush1/flush2 update andQuincey Koziol2016-12-201-0/+121
| | | | flushrefresh test. (Also refactor of message send / wait code)
* Fixed a few memory problems in test/cache_logging.c andDana Robinson2016-11-231-11/+22
| | | | test/h5test.c (which show up in test/vfd.c).