Commit Graph

11797 Commits

Author SHA1 Message Date
Allen Byrne
6d22b60931 [svn-r19183] Corrected h5repack verbose test for windows
Updated tools/lib source dir variable for source list

Tested: local linux
2010-08-06 12:53:52 -05:00
Allen Byrne
5e2d5978e4 [svn-r19181] Added new h5repack test for bug1797 to CMakeLists.txt. Added corrected changes to test script for verbose filters
Tested: local linux
2010-08-06 10:04:38 -05:00
Quincey Koziol
0de252524d [svn-r19179] Description:
Bring changes from Coverity branch back to trunk:

r19079 & 19080:
[BZ1942]  h5dump -u to generate XML, it does not respect the -m option

xml version of dump_data function didn't check for use of fp_format variable.

Added new test expected file for committed bug 1942

r19103, 19104 & 19105:
[BZ1821] h5repack -v did not display correct output for a selected compression. Needed new test for comparing output of -v option.

Added new test file for solution to BZ1821

BZ1821 - Bring test changes from the shell script actually used.

Tested on:
    Mac OS X/32 10.6.4 (amazon) debug & production
    (h5committested on branch)
2010-08-05 18:19:01 -05:00
Raymond Lu
1fe94ec545 [svn-r19176] Bug fix for #1239 - The filter's public function CAN_APPLY should return htri_t not
herr_t.  To minimize the change of the library's behavior, in the function
H5Z_prelude_callback of H5Z.c, if the return value of can_apply is FALSE and
the filter is MANDATE, this function returns a FAILURE.  If the return value is FALSE
but the filter is OPTIONAL, this function returns a SUCCEED.  During the IO, the filter
will fail and return a size of zero.  But the pipeline will skip this filter.

Tested the same change for 1.8 on jam, linew, and amani.  Tested on jam with szip.
2010-08-05 12:14:39 -05:00
Raymond Lu
ddf5c9caa5 [svn-r19175] Bug fix for #1239 - The filter's public function CAN_APPLY should return htri_t not
herr_t.  To minimize the change of the library's behavior, in the function
H5Z_prelude_callback of H5Z.c, if the return value of can_apply is FALSE and
the filter is MANDATE, this function returns a FAILURE.  If the return value is FALSE
but the filter is OPTIONAL, this function returns a SUCCEED.  During the IO, the filter
will fail and return a size of zero.  But the pipeline will skip this filter.
 
Tested the same change for 1.8 on jam, linew, and amani.  Tested on jam with szip.
2010-08-05 12:14:16 -05:00
Raymond Lu
abf4926632 [svn-r19174] Bug fix for #1239 - The filter's public function CAN_APPLY should return htri_t not
herr_t.  To minimize the change of the library's behavior, in the function 
H5Z_prelude_callback of H5Z.c, if the return value of can_apply is FALSE and
the filter is MANDATE, this function returns a FAILURE.  If the return value is FALSE 
but the filter is OPTIONAL, this function returns a SUCCEED.  During the IO, the filter 
will fail and return a size of zero.  But the pipeline will skip this filter. 

Tested on jam, lnew, and amani.  Tested on jam with szip.
2010-08-05 12:13:29 -05:00
Raymond Lu
1b5fdb13ba [svn-r19173] Took out several redundant lines when object IDs are closed.
Tested on jam.
2010-08-05 12:09:49 -05:00
Albert Cheng
dc51db6583 [svn-r19171] Bug fix: 1917.
The previous fix had the Windows code in H5private.h but they should have been
in H5win32defs.h which holds all Windows-specific definitions.  Moved the fix.

Tested: BP (AIX) to confirm the fix is still valid. Windows tests will occur
in daily tests tonight.
2010-08-04 19:15:08 -05:00
Quincey Koziol
e86d77f479 [svn-r19168] Description:
Clean up some compiler warnings.

Tested on:
	Linux 2.6/64 (abe) w/parallel
2010-08-03 23:15:05 -05:00
Albert Cheng
41f0057dbc [svn-r19167] Bug fix: 1917.
Description:
test/big incorrectly determined not able to write files larger than 2GB and
skipped the SEC2 and STDIO driver tests.  The reason was because it was using
off_t while the SEC2 driver is using lseek64 which expects off64_t type.

Solution:
Created a new HDoff_t which is set to off_t or off64_t or other appropriate
type depending on which of lseek or lseek64 is available. Changed SEC2 file
driver and the big test to use this common definition.

Tested:
In BP (AIX), using --enable and --disable-largefile, for both 32 and 64 bits
modes.  Did not do h5committest because: 1. the error was exposed in the remote
BP machine; 2. the change is trivial.
Note that STDIO driver failed when --disable-largefile is used. That is an
error in the STDIO driver code that is being fixed.
2010-08-03 18:35:42 -05:00
Allen Byrne
2d8a18a1fd [svn-r19165] Add configure changes from r19160 to CMake. 2010-08-02 09:05:02 -05:00
Albert Cheng
02e41acebb [svn-r19160] Added the tests for fseeko64 and ftello64 which will be used by the STDIO
VFD if they are available.

Tested: jam only since it was tests for two new functions that are not used by
the code yet.
2010-07-30 15:06:16 -05:00
Quincey Koziol
eff803f824 [svn-r19156] Description:
Bring revisions from Coverity branch back to trunk:

r19044:
Coverity #449 - Line 1560 called function H5O_chunk_protect for 2 pointers to allocate. But when there's failure on the second one, the first wasn't freed 
(H5O_chunk_unprotect).  We fixed it by freeing the pointers when an error happens.

r19045:
Fixed coverity issue # 319.  Free sec_node in done if it is not NULL.

r19046:
Add intended but missing assignments to initialize pointers to NULL (coverity issue fixes).

r19049:
Hdf5_1_8_coverity branch was recreated from hdf5_1_8 branch in revision 18839 without fix for Coverity issue #84 having been propagated to the hdf5_1_8 branch.  This revision adds the fix again.

r19060:
added parentheses to see if they will keep subversion from getting confused

r19061:
Fix coverity item 139.  Fixed incorrect condition for freeing buffer on error.

Fix coverity items 20 and 21.  Removed unused NTESTS facility from dtypes.c.

Cleanup in H5Shyper.c.

r19062:
Fix coverity item 450.  Check to see if chk_proxy has been allocated before
attempting to free it.

Fix coverity item 454.  Check to see if allocation of buf failed in
H5D_fill_refill_vl.

Fix coverity items 455-457.  Initilize hid_t's to -1, check their value before
attempting to close them, and check if the close failed.

r19063:
New fix to address coverity issue #84.  Check that pointers in H5Z_xform_find_type are not NULL before passing them to H5T_cmp.

Tested on:
    Mac OS X/32 10.6.4 (amazon) w/debug & production
    (Too minor to require h5committest)
2010-07-30 13:06:32 -05:00
Quincey Koziol
7fe87a2472 [svn-r19153] Description:
Bring changes on Coverity branch back to trunk:

r19040:
Fixed coverity #440 - NULL check after dereference.  We moved the NULL check up
into the IF block and changed it to assertion.

r19041:
Maintenance: Addressed Coverity issues 441 and 449 by initializing proper
variables

r19042:
In function H5O_chunk_protect (H5Ochunk.c):
 - Initialize H5O_chunk_proxy_t pointers chk_proxy and ret_value.
 - Free chk_proxy on error.

r19043:
Addressed coverity issues 442 - 448 by initializing pointers to NULL.

Tested on:
    Mac OS X/32 10.6.4 (amazon) w/debug & production
    (Too minor to require h5committest)
2010-07-29 14:07:26 -05:00
Raymond Lu
178b80b679 [svn-r19150] Correction from the previous checkin for H5Oattribute.c. Because the attribute structure i
is shared now. The only situation that requires copying the data is when the metadata cache 
evicts and reloads this attribute. The attribute structure will be different in that 
situation. 

Tested on jam.
2010-07-29 13:17:32 -05:00
Elena Pourmal
0357b5ad52 [svn-r19148] Maintenance: Removed misleading information about the HDF4-to-HDF5 tools. The tools became
a part of the h4h5tools distribution long time ago, but the INSTALL file 
             was not updated in the development branch and slipped into 1.8 releases and current trunk.
2010-07-29 10:17:05 -05:00
Neil Fortner
dd01261ac1 [svn-r19146] Purpose: Fix bug in direct IO driver
Description:

In certain circumstances, the direct I/O driver did not perform correctly when
data was unaligned.  The driver has been patched to fix this.  Also added some
potential performance improvements for the unaligned case, and strengthened the
test for whether the data needs to be aligned.

Tested: cobalt
2010-07-28 17:23:11 -05:00
Raymond Lu
51a30dbdb7 [svn-r19144] Update for bug fix #1956. 2010-07-28 14:46:31 -05:00
Raymond Lu
bff519a7c7 [svn-r19142] I added H5Itest.c.
Not tested yet.
2010-07-28 14:20:41 -05:00
Raymond Lu
7e2ed5735a [svn-r19140] In line 861, there's no need to allocate data buffer or copy the data because the attribute
structure is shared now.  Only do an assertion check, instead.

Tested the same change for 1.8.5 on jam - simple change.
2010-07-28 12:31:48 -05:00
Allen Byrne
b49f46fe15 [svn-r19135] Added new file to windows project files.
Added new file to src/CMakeLists.txt
2010-07-28 08:50:56 -05:00
Quincey Koziol
0b7306beed [svn-r19133] Description:
Correct traversal of user-defined links (including external links) to
retain path information of object, allowing H5Iget_name() queries to work
quickly (without searching entire destination file).  This required some
refactoring and addition of a mechanism to detect if a "fast" query was
performed (for the tests).

	Minor code cleanups, etc.

Tested on:
        FreeBSD/32 6.3 (duty) in debug mode
        FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
                w/C++ & FORTRAN, w/threadsafe, in debug mode
        Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
                w/C++ & FORTRAN, in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                w/szip filter, w/threadsafe, in production mode
        Linux/PPC 2.6 (heiwa) w/C++ & FORTRAN, w/threadsafe, in debug mode
        Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
                in production mode
        Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
        Mac OS X/32 10.6.4 (amazon) in debug mode
        Mac OS X/32 10.6.4 (amazon) w/C++ & FORTRAN, w/threadsafe,
                in production mode
        Mac OS X/32 10.6.4 (amazon) w/parallel, in debug mode
2010-07-28 07:27:56 -05:00
Quincey Koziol
ad2f3285b3 [svn-r19131] Description:
Reduce compiler optimizations for v10.6, to work around bug with static
constant char *'s.

Tested on:
    Linux/32 2.4 (jam) w/PGI
2010-07-27 08:09:55 -05:00
Quincey Koziol
95330f3e60 [svn-r19130] Description:
Correct another inadvertant use of macro instead of versioned API name.

Tested on:
        Eyeballed only, too minor to require h5committest
2010-07-26 13:51:48 -05:00
Quincey Koziol
4ebdf9e278 [svn-r19127] Description:
Change use of API wrapper to using versioned API routine (i.e. H5Eprint
-> H5Eprint2)

Tested on:
	None, eyeballed only, too simple
2010-07-23 13:55:24 -05:00
Quincey Koziol
1f685d5d53 [svn-r19124] Description:
Add some error checking to the process of creating superblock extension.

Tested on:
        FreeBSD/32 6.3 (duty) in debug mode
        FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
                w/C++ & FORTRAN, w/threadsafe, in debug mode
        Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
                w/C++ & FORTRAN, in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                w/szip filter, w/threadsafe, in production mode
        Linux/PPC 2.6 (heiwa) w/C++ & FORTRAN, w/threadsafe, in debug mode
        Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
                in production mode
        Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
2010-07-22 12:20:00 -05:00
Quincey Koziol
cba920a036 [svn-r19120] Description:
Bump the testing timer value from 30 to 60 minutes.

Tested on:
	None, just eyeballed, too simple to require test
2010-07-22 08:13:15 -05:00
Quincey Koziol
64ab5ef6b4 [svn-r19118] Description:
Fix return value from FAIL to NULL.

Tested on:
	Eyeballed only
	(too trivial to test)
2010-07-21 12:14:27 -05:00
Allen Byrne
3e87f75822 [svn-r19116] Corrected positioning of cmake variables in definition order. 2010-07-21 09:00:47 -05:00
Quincey Koziol
e3537b7ee7 [svn-r19114] Description:
Rename H5AC_set() to H5AC_insert_entry()
	Get rid of H5C_set_skip_flags() & related flags

Tested on:
	Mac OS X/32 10.6.4 (amazon) w/debug, production & parallel
	(too simple to require h5committest)
2010-07-20 13:51:24 -05:00
Allen Byrne
4e3398b9d7 [svn-r19108] Corrected cmake location of ConfigureChecks.cmake 2010-07-20 10:44:09 -05:00
Allen Byrne
c00ba4b122 [svn-r19107] Move Resources folder to config/cmake
Tested: Local Linux
2010-07-20 10:29:38 -05:00
Quincey Koziol
a67794b1bc [svn-r19099] Description:
Fix const pointer issues for projection construction routine and also
bump time before alarm kicks in to terminate a test from 20 minutes to 30
minutes, to give the PGI compiler tests w/debugging enabled a chance to finish.

Tested on:
	Mac OS X/32 10.6.4 (amazon) w/debug
	Linux/32 2.6.18 (jam) w/PGI & debug
2010-07-19 12:53:10 -05:00
Quincey Koziol
5a1cb3c7a6 [svn-r19096] Description:
Bring "round robin" metadata write strategy code from 'round_robin'
branch to the trunk.

Tested on:
        FreeBSD/32 6.3 (duty) in debug mode
        FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
                w/C++ & FORTRAN, w/threadsafe, in debug mode
        Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
                w/C++ & FORTRAN, in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                w/szip filter, in production mode
        Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
                in production mode
        Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
        Mac OS X/32 10.6.3 (amazon) in debug mode
        Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
                in production mode
2010-07-19 05:54:51 -05:00
Quincey Koziol
f82774c0d5 [svn-r19092] Description:
Bring "shape same" changes from LBL branch to trunk.  These changes
allow shapes that are the same, but projected into dataspaces with different
ranks to be detected correctly, and also contains code to project a dataspace
into greater/lesser number of dimensions, so the I/O can proceed in a faster
way.

	These changes also contain several bug fixes and _lots_ of code
cleanups to the MPI datatype creation code.

	Many other misc. code cleanup are included as well...

Tested on:
        FreeBSD/32 6.3 (duty) in debug mode
        FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
                w/C++ & FORTRAN, w/threadsafe, in debug mode
        Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
                w/C++ & FORTRAN, in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                w/szip filter, in production mode
        Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
                in production mode
        Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
        Mac OS X/32 10.6.3 (amazon) in debug mode
        Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe,
                in production mode
2010-07-19 00:05:45 -05:00
HDF Tester
075f618e23 [svn-r19086] Snapshot version 1.9 release 74 2010-07-18 07:33:00 -05:00
Neil Fortner
9a8c8887ab [svn-r19083] Add gen_sizes_lheap to CMakeLists.txt.
Tested: none
2010-07-16 16:44:15 -05:00
Neil Fortner
c22b8a94f2 [svn-r19076] Purpose: Fix bug 1951
Description:
A bug introduced in 1.8.5 causes local heap data blocks to be mis-aligned when
sizeof_offsets + 2*sizeof_lengths is not a multiple of 8.  In this case, the
address of the data block as stored in the heap prefix is aligned but the actual
data block is not.  This causes files created with these sizes to be corrupted,
and prevents uncorrupted files with these sizes to be unreadable.  Modified
local heap code to account for alignment.

Tested: jam, amani, linew (h5committest)
2010-07-16 11:32:49 -05:00
Allen Byrne
0dce71a0a3 [svn-r19074] Added check for no encoding to determine result for test
Tested: Windows
2010-07-15 12:51:34 -05:00
Albert Cheng
2e929c51a5 [svn-r19072] Bug 1921: change to use mpiexec.
Changed the mpirun to mpiexec in the comment line.

Tested: jam (pp). No h5committest since this applied in parallel only.
2010-07-14 12:25:03 -05:00
Albert Cheng
aab23acc05 [svn-r19070] Document update: ID 1921 change mpirun to mpiexec
Changed the use of mpirun to mpiexec which is the MPI-2 official standard.
INSTALL_parallel:
Also bring in previous update of Red Storm support.
2010-07-14 12:07:50 -05:00
Albert Cheng
eea98ac8cb [svn-r19068] Bug fix: ID 1921 change mpirun to mpiexec
Removed the recognition of parallel compilers of LAM (hcc) and ChMPIon (cmpicc)
since we have no access to these two MPI implementations and decided not to
support them any more.

Test: Jam using parallel tests:
1. use CC=mpicc and confirmed it is recognized as a parallel compiler;
2. use CC=hcc and confirmed it is NOT recognized as a parallel compiler
any more.
2010-07-14 10:56:42 -05:00
HDF Tester
3d3d95db07 [svn-r19064] Snapshot version 1.9 release 73 2010-07-11 12:06:05 -05:00
Larry Knox
10a8b060ca [svn-r19059] Brought changes from hdf5_1_8 to add version information for fortran and c++ compilers in libhdf5.settings file and configure output (r18836), to install examples as part of make install (r18680), and to provide scripts to compile and run the examples after they are installed (r18817).
Tested with new/h5committest on amani, heiwa, and jam.
2010-07-08 21:52:14 -05:00
Jonathan Kim
5d5ffe2373 [svn-r19057] Purpose:
add reference file entries for the new test expected output files

Description:
    This is dependent to r19051.

Tested:
    Windows (cmake)
2010-07-08 11:37:40 -05:00
Allen Byrne
47834df86d [svn-r19056] Added code to retrieve version info from H5public.h; corrected a typo in a configure check and a macro 2010-07-08 08:50:49 -05:00
Jonathan Kim
b3162a67e0 [svn-r19052] Add thlink-1.ls entry back which was mistakenly removed from previous checkin. 2010-07-07 14:53:23 -05:00
Jonathan Kim
af749bafb7 [svn-r19051] Purpose:
Add --no-dangling-links option to h5ls. 

Description:
Related to "Bug 1830 - Following an dangling external link in h5ls should set non-zero return code."
If --no-dangling-links option is specified and any dangling link is found, return exit code 1 (error).

Tested:
 jam, amani and heiwa
2010-07-07 13:52:04 -05:00
HDF Tester
be5d631410 [svn-r19047] Snapshot version 1.9 release 72 2010-07-04 12:06:29 -05:00
Allen Byrne
2f13382883 [svn-r19037] Added executable Linker Flag for MSVC static builds: /NODEFAULTLIB:MSVCRT
Added VERSION vars for inclusion into auto snapshot version update script

Tested windows
2010-06-29 15:09:03 -05:00