Commit Graph

89 Commits

Author SHA1 Message Date
Dennis Heimbigner
e82d33a9bb fix error in tst_h_vars.c 2020-03-02 11:58:22 -07:00
Edward Hartnett
58d78a7e4c more HDF5 testing of scalar compact variable 2020-02-26 07:34:56 -07:00
Edward Hartnett
6241a6e7a0 more tests for storage, changed var names to reflect stortage 2020-02-25 15:55:34 -07:00
Edward Hartnett
2ff24bd6fe more tests for compact storage 2020-02-25 13:30:38 -07:00
Edward Hartnett
beb47aeb42 test demonstrating HDF5 use of compact scalar dataset 2020-02-25 07:23:27 -07:00
Edward Hartnett
bb266baef5 fixed comments 2020-02-25 07:10:43 -07:00
Edward Hartnett
10eada9c52 fixed warnings 2020-02-25 07:09:00 -07:00
Edward Hartnett
810f9cdb54 refurbishing old test that was commented out 2020-02-25 07:07:58 -07:00
Edward Hartnett
8952c9b9f1 whitespace cleanup of tst_h_vars2.c 2020-02-25 06:44:40 -07:00
Edward Hartnett
f326b6ad37 added in decl for num_obj for large file builds 2020-02-11 17:21:53 -07:00
Edward Hartnett
03c7e61b20 merged changes from master 2020-02-11 17:20:22 -07:00
Edward Hartnett
e15161ef22 more uncommented test code and whitespace cleanup 2020-02-08 06:59:52 -07:00
Edward Hartnett
26249f4583 added HDF5 parallel test to CMake build 2020-02-08 06:37:43 -07:00
Edward Hartnett
29981888a9 now allow substitution of different mpi launcher in h5_test/run_par_tests.sh 2020-02-08 06:31:19 -07:00
Edward Hartnett
1c3ea221a9 moving run_par_tests.sh to run_par_tests.sh.in 2020-02-08 06:27:32 -07:00
Edward Hartnett
53b1c56ad5 uncommented part of test code 2020-02-08 06:21:37 -07:00
Edward Hartnett
52fb360d8c whitespace and comment cleanup 2020-02-08 06:15:06 -07:00
Edward Hartnett
cd3740e724 finished test for zlib+szip in HDF5 2020-02-07 04:05:46 -07:00
Edward Hartnett
6b2947813f adding test for zlib+szip in HDF5 2020-02-07 03:38:43 -07:00
Edward Hartnett
e793764c18 more HDF5 tests for szip functionality 2020-02-04 05:30:31 -07:00
Greg Sjaardema
56c0d5cf8a Spelling fixes 2019-09-18 08:03:01 -06:00
Dennis Heimbigner
62e2b472b4 Minor config.h changes to support filters in Fortran 2019-04-29 16:36:08 -06:00
Ed Hartnett
cb47eaf895 uncommented some testing 2019-02-02 07:43:56 -07:00
Ed Hartnett
aed2a4c1db got tst_h_rename using H5Lmove 2019-02-02 07:17:57 -07:00
Ed Hartnett
373c0b5665 added tst_h_rename.c to check HDF5 renaming behavior 2019-02-02 06:17:43 -07:00
Ward Fisher
e5640d9565 Updated copyright date. 2018-12-04 17:03:56 -07:00
Ward Fisher
a3eb21c068 Continuing to replace references. 2018-12-04 16:51:40 -07:00
Dennis Heimbigner
751300ec59 Fix more memory leaks in netcdf-c library
This is a follow up to PR https://github.com/Unidata/netcdf-c/pull/1173

Sorry that it is so big, but leak suppression can be complex.

This PR fixes all remaining memory leaks -- as determined by
-fsanitize=address, and with the exceptions noted below.

Unfortunately. there remains a significant leak that I cannot
solve. It involves vlens, and it is unclear if the leak is
occurring in the netcdf-c library or the HDF5 library.

I have added a check_PROGRAM to the ncdump directory to show the
problem.  The program is called tst_vlen_demo.c To exercise it,
build the netcdf library with -fsanitize=address enabled. Then
go into ncdump and do a "make clean check".  This should build
tst_vlen_demo without actually executing it.  Then do the
command "./tst_vlen_demo" to see the output of the memory
checker.  Note the the lost malloc is deep in the HDF5 library
(in H5Tvlen.c).

I am temporarily working around this error in the following way.
1. I modified several test scripts to not execute known vlen tests
   that fail as described above.
2. Added an environment variable called NC_VLEN_NOTEST.
   If set, then those specific tests are suppressed.

This should mean that the --disable-utilities option to
./configure should not need to be set to get a memory leak clean
build.  This should allow for detection of any new leaks.

Note: I used an environment variable rather than a ./configure
option to control the vlen tests. This is because it is
temporary (I hope) and because it is a bit tricky for shell
scripts to access ./configure options.

Finally, as before, this only been tested with netcdf-4 and hdf5 support.
2018-11-15 10:00:38 -07:00
luz.paz
74fbacdb82 Misc. source comment typos
Some are user-facing. Found via `codespell` and through the downstream FreeCAD.
2018-04-26 23:04:01 -04:00
Ed Hartnett
45329862a8 removed valgrind stuff 2018-02-27 08:36:12 -07:00
Ed Hartnett
46d3bca8f4 removed non-working BUILD_DLL target 2017-11-30 05:40:17 -07:00
Ed Hartnett
922734b88f removed mention of deleted tst_h_rd_cmp.c from h5_test CMake build 2017-11-26 09:01:54 -07:00
Ed Hartnett
6ebe58998f clean up 2017-11-26 07:13:10 -07:00
Ed Hartnett
bebe7e1e9d merged master 2017-11-26 07:06:02 -07:00
Ed Hartnett
8011fab382 now run tst_large2, also cleaned up some more warnings 2017-11-24 10:50:07 -07:00
Ed Hartnett
1456e227ff more changes to attempt to get cmake working 2017-11-23 06:21:08 -07:00
Ed Hartnett
fab6ed8346 combined two tests to eliminate dependency 2017-11-23 05:02:13 -07:00
Ward Fisher
1ccdf0219f Work towards parallel testing via cmake. 2017-11-22 12:10:58 -07:00
Ed Hartnett
812c2fd4d1 got make -j check working in ncdump and examples directories 2017-11-17 10:16:17 -07:00
Ward Fisher
d185602abf Merge branch 'ejh_make_j' of https://github.com/NetCDF-World-Domination-Council/netcdf-c into more_ejh_pulls 2017-11-09 12:52:55 -07:00
Ed Hartnett
b9911d6e6f took out most uses of EXTRA_TESTS, returned it to disabled by default 2017-11-08 13:25:23 -07:00
Ed Hartnett
bd22bde4c8 final cleanup 2017-11-08 04:29:53 -07:00
Ed Hartnett
d1946e4b69 cleanup whitespace issues 2017-11-08 04:28:44 -07:00
Ed Hartnett
9d187c099a fixed file name in test 2017-11-08 04:20:13 -07:00
Ed Hartnett
1b93bc9427 fixed warning 2017-10-24 11:35:03 -06:00
Ed Hartnett
6a71bf81b1 fixed memory problem in tst_h_dimscales 2017-10-23 09:49:38 -06:00
Ward Fisher
ed4dfb4402 Testing something with the pure h5 tests. 2017-06-28 16:51:29 -06:00
Ward Fisher
08c51e6064 Corrected a couple issues uncovered when revisiting https://github.com/Unidata/netcdf-c/issues/244 2017-06-14 14:01:09 -06:00
Ward Fisher
b039216c42 Made memory free method conditional, based on if H5free_memory is available in libhdf5 or not. In support of code contributed by Greg Sjaardema . See https://github.com/Unidata/netcdf-c/pull/411 for more information. 2017-06-06 11:33:05 -06:00
Greg Sjaardema
ebed788181 Use H5free_memory instead of free
The documentation for `H5Tget_member_name` states that the memory returned should be freed by `H5free_memory` instead of `free`.  I was getting test failure until I changed this to call H5free_memory on a Mac OS Sierra system with hdf5-1.9.236
2017-06-06 13:22:02 -04:00