Commit Graph

10976 Commits

Author SHA1 Message Date
Neil Fortner
fb81174e76 [svn-r16473] Purpose: fix problems related to 'self-referential' attributes
Description:
When an attribute was created with a datatype or dataspace that was shared in
the same object header that the attribute was in, the attribute could not be
deleted.  Changes made to ensure that the attribute can be deleted both when the
attribute is in the object header and when it is shared in the heap.  Object
header message decode routines now take an "open_oh" parameter to enable them to
avoid opening the same object header twice.

Tested: jam, smirom (h5committest)
2009-02-12 13:47:04 -05:00
Larry Knox
e52b18bf2c [svn-r16472] Change H5Dopen to H5Dopen2 - fixes compile error - too many arguments for H5Dopen1 when using v1.6 compatible flag. Trivial change, tested on smirom and jam. 2009-02-12 11:13:03 -05:00
Allen Byrne
6b0bf98d32 [svn-r16469] Added new cases for compound types to batch file per the updated script file of rev #16461
Tested:
   Vista32, XP64 - VS2005, VS2008
2009-02-11 17:16:22 -05:00
Raymond Lu
7768b49c16 [svn-r16466] Performance Improvement(bug #1450). When a chunk is bigger than the cache size and isn't allocated
on disk, the library still loaded it in the cache, which is redundant.  I changed it to bypass the
cache and added a test in dsets.c.


Tested on jam and smirom.
2009-02-11 13:50:21 -05:00
Raymond Lu
725b4d7ddb [svn-r16465] Performance Improvement(bug #1450). When a chunk is bigger than the cache size and isn't allocated
on disk, the library still loaded it in the cache, which is redundant.  I changed it to bypass the
cache and added a test in dsets.c.

Tested on jam and smirom.
2009-02-11 13:49:17 -05:00
Raymond Lu
77e347b19f [svn-r16464] I brought them up to date. I'm testing them on OpenVMS now. 2009-02-11 13:45:02 -05:00
Pedro Vicente Nunes
96a0892ba8 [svn-r16461] Bug fix: for compound types, the not comparable test for members was not done
Solution: for compound types, recursively apply that check
Two new cases are added
1) the compound type has a different number of members. Message printed is
<obj1> has X members <obj2> has Y members
Where X and Y are the number of members of each compound type being compared
2) the compound type has not comparable types (for example a double and an int at the same index)
In this case the message
Comparison not possible: object1 is of class1 and object2 is of class2
Is replaced with
Comparison not possible: object1 has a  class1 and object2 has a  class2
Modified the test generator program to have these 2  cases
Added a shell run for these 2  cases


Tested: windows, h5committest
2009-02-11 10:57:25 -05:00
Neil Fortner
d4ea5fbfb2 [svn-r16457] Fix a typo in INSTALL_Windows.txt.
Tested: Notepad
2009-02-10 15:01:44 -05:00
HDF Tester
3e8fae1bee [svn-r16453] Snapshot version 1.9 release 30 2009-02-08 05:15:02 -05:00
John Mainzer
2933d2f80b [svn-r16451] Repaired intermittant failure of the t_cache test in testpar.
The failure was caused by some over active sanity checking code in 
unlock_entry().  In essence the code did not consider the possibility
that under certain, very unusual circumstances, an entry could be flushed
to disk during the H5AC_unprotect() call.  Instead, it simply failed
if a dirty entry was marked clean after the call to H5AC_unprotect().

This bug in the test code was exposed by recent changes to the default
cache configuration made as part of the "metadata blizard" bug fix.

Fixed the bug by adding code to detect when an entry is flushed during 
the call to H5AC_unprotect(), and not trigger a failure if a dirty entry
is marked clean after a call to H5AC_unprotect() if the entry has been
flushed.

In passing also found and fixed another test bug in which expunged 
entries were erroneously marked as dirty in the test code's independant
register of entry status.


Tested parallel on Phoenix (AMD64 Linux) and Jam.  Also ran t_cache
manually hundreds of times looking for intermittant failures.

Larry kindly tested (parallel) on Mercury.
2009-02-06 13:20:13 -05:00
Pedro Vicente Nunes
7418c06356 [svn-r16449] bug fix: compare the return value of H5Tequal with TRUE
tested: h5committest
2009-02-06 11:21:30 -05:00
Allen Byrne
b99ed1e18f [svn-r16442] Update windows batch file to match *nix script due to rev 16351
Tested:
 XP 32 VNET, XP64 VS2008
2009-02-05 13:49:24 -05:00
Quincey Koziol
7ba5922dca [svn-r16439] Description:
Bring r16435 from revise_chunks branch back to trunk:

        Expand object copy tests for chunked datasets to include 1-D datasets
with an unlimited dimension.  (Fix typo in comment for test/links.c)

Tested on:
        FreeBSD/32 6.3 (duty) in debug mode
	(more thoroughly tested already on revise_chunks branch)
2009-02-05 10:50:25 -05:00
Vailin Choi
f65a6a6473 [svn-r16436] Checkin for moving messages forward into continuation message:
src/H5Oalloc.c, test/ohdr.c, toshm.c
Fixed couple of problems in src/H5Odbg.c.
2009-02-05 10:29:27 -05:00
Pedro Vicente Nunes
3c67d2972c [svn-r16434] bug fix: typo in usage message
tested: linux
2009-02-05 10:24:23 -05:00
Pedro Vicente Nunes
9de3088234 [svn-r16431] Uncomment a h5cleanup() call previously accidently left commented
Tested: linux
2009-02-05 09:52:47 -05:00
Scott Wegner
bf3f68890c [svn-r16428] Purpose: Fix Windows install script to include missing tool binaries
Description:
A user discovered that the HDF5 1.8.2 Windows release binaries were missing a few of the HDF5 tools.  This is due to the Windows install script, which simply didn't include them.  This commit fixes the install script to include h5copy, h5mkgrp, and h5stat

Tested:
VS2005 w/ WinXP, build and install only
2009-02-04 16:51:51 -05:00
Pedro Vicente Nunes
89f033b661 [svn-r16423] bug fix: a open call was not made the expected FAPL
tested: windows, linux (split, sec2)
2009-02-04 14:37:58 -05:00
Pedro Vicente Nunes
50fa98277d [svn-r16419] #1449 Change set_extent test to use standard standalone test framework
Call h5_fixname (with an array of test filenames) for generating the  
filename to create and then call h5_cleanup() when the tests pass, to delete the files  
created and close the FAPL from h5_fileaccess(). 

Defined a macro 
#define TESTING2(WHAT)	{printf(" Testing %-62s",WHAT); fflush(stdout);}
Similar to TESTING, except that it has a initial indentation space.
The effect is for nested loop tests

Testing with old file format:
 Testing with fill value, no compression                                PASSED

tested: windows, linux
2009-02-04 10:29:01 -05:00
Quincey Koziol
4d0c4686ea [svn-r16417] Description:
Bring r16416 from revise_chunks branch to trunk:

	Bring closer to standard standalone test format, add checks for using
the latest file format and close dataset ID leaked.

Tested on:
	FreeBSD/32 6.3 (duty)
	(too minor to require h5committest)
2009-02-03 20:32:49 -05:00
Quincey Koziol
ba149f834f [svn-r16414] Description:
Eliminate some more calls to H5E_clear_stack() from within library code.

    Clean up some warnings & comments also.

Tested on:
    Mac OS X/32 10.5.6 (amazon)
    (Too minor to require h5committest)
2009-02-03 18:42:24 -05:00
Allen Byrne
9ada07ef3a [svn-r16412] testh5ls.bat - added tests to match script file from rev 16310
h5repack.bat - added test to match script file from rev 16402
set_extent.vcproj - added WS2_32.lib for change to set_extent from rev 16406
h5pubconf.h - added C99 undef to sync with *nix configuration

Tested:
 Vista32, XP32, XP64 using VNET, VS2005 VS2008
2009-02-03 16:38:14 -05:00
Frank Baker
285d83cf36 [svn-r16409] Description:
Update source code copyright to include 2009.
2009-02-03 14:36:58 -05:00
Pedro Vicente Nunes
dfaf4dec8e [svn-r16405] #1449 Change set_extent test to use standard standalone test framework
use a fapl obtained by h5_fileaccess to the call of H5Fcreate
and redo the test calls with

h5_reset();
    fapl = h5_fileaccess();

    nerrors += do_ranks( fapl ) < 0 ? 1 : 0;
    nerrors += test_external( fapl ) < 0 ? 1 : 0;
    nerrors += do_layouts( fapl ) < 0 ? 1 : 0;

tested: windows, linux
2009-02-03 10:55:56 -05:00
Quincey Koziol
348c380e3f [svn-r16401] Description:
Correct error introduced in r16353 with layout version, and add test
so it gets caught earlier.

Tested on:
	FreeBSD/32 6.3 (duty)
	Too minor to require h5committest
2009-02-02 20:41:51 -05:00
Quincey Koziol
1528a6ad07 [svn-r16399] Description:
Remove some internal calls to H5E_clear_stack().

Tested on:
	FreeBSD/32 6.3 (duty)
	Too minor to require h5committest
2009-02-02 15:53:25 -05:00
HDF Tester
01d8f959f9 [svn-r16397] Snapshot version 1.9 release 29 2009-02-01 07:32:57 -05:00
Quincey Koziol
3b8b18d16e [svn-r16394] Description:
Rename H5O_msg_read_real -> H5O_msg_read_oh, to be more consistent with
other routines in library.

	Move H5O_msg_read_oh and H5O_msg_exists_oh from package to private
header file, so other routines in library can use them.

Tested on:
	FreeBSD/32 6.3 (duty)
	Too minor to require h5committest
2009-01-31 21:31:34 -05:00
Quincey Koziol
940f64156b [svn-r16391] Description:
Add more metadata statistics to extensible array header.

Tested on:
	FreeBSD 6.3 (duty)
	(too minor to require h5committest)
2009-01-31 13:12:20 -05:00
Raymond Lu
9146841b9e [svn-r16390] Brought check.com and make.com up to date. I'll test them on OpenVMS. 2009-01-31 11:25:22 -05:00
Raymond Lu
6361428300 [svn-r16389] Corrected a typo in the ZLIB path name.
Tested on OpenVMS.
2009-01-31 10:31:17 -05:00
Raymond Lu
63008bb5b3 [svn-r16388] Changed these files up to date. I'll test them after checkin. 2009-01-30 10:57:16 -05:00
Neil Fortner
e3cfd6f0df [svn-r16386] Fix various warnings (errors in pgcc) associated with yesterday's dense
attribute object copy commit.

Tested: jam (gcc and pgcc)
2009-01-30 10:46:43 -05:00
Quincey Koziol
2af7e952ed [svn-r16382] Description:
Re-insert some whitespace formatting that was accidentally removed.

Tested on:
	None - just eyeballed.
2009-01-29 16:08:13 -05:00
Neil Fortner
af7ced00f6 [svn-r16380] Purpose: Enable copying of dense attributes
Description:
Attribute object copy routines have been moved from H5Oattr.c to H5Aint.c.
These routines are now shared between compact and densely stored attributes.
New routines written to support the copying of dense attributes.  This patch wasmostly written by Peter Cao.

Tested: jam, smirom (h5committest)
2009-01-29 16:02:07 -05:00
Allen Byrne
f7464a5129 [svn-r16378] Description:
Changed max macro in earray.c to avoid Windows conflict.
    Changed if(test) to assert(test) in H5FDcore.c - H5FD_core_open()

Tested on:
    Windows: XP32, XP64, Vista32, Vista64 
    H5committest.
2009-01-29 15:52:44 -05:00
Neil Fortner
5a9903cdde [svn-r16377] Revert unintentional change to tfamily00000.h5 2009-01-29 15:51:25 -05:00
Neil Fortner
ec61416324 [svn-r16376] Purpose: Fix a bug encountered when copying shared messages
Description: When attempting to copy an object with a message shared in its own
object header, the library attempts to protect the same object header twice.
Previously, it was possible for the object header to be protected with write
access in one or both of these protects, which would be illegal.  The library
should now always protect with read only access in this case.  The conditions
for fixing incorrect datatype versions have been made weaker to support this
change.  The version will only be corrected if the object header the datatype
is in is modified.

Tested: jam, smirom (h5committest)
2009-01-29 15:43:16 -05:00
Pedro Vicente Nunes
9a298fd1dd [svn-r16373] replaced some printf statements with parallel_print
tested: linux serial and parallel
2009-01-29 13:58:36 -05:00
Quincey Koziol
6416329ef8 [svn-r16372] Description:
Clean up files produced from set_extent testing.

Tested on:
	FreeBSD/32 6.3 (duty)
	(too minor to require h5committest)
2009-01-29 13:18:39 -05:00
Neil Fortner
b698574fce [svn-r16370] Modify test_pack_ooo to always output the state of randomly generated variables
when it fails, even in the sections that do not use the random variables.

Tested: jam
2009-01-28 12:19:09 -05:00
Quincey Koziol
91c1a6df54 [svn-r16367] Description:
Refactor internal address encode/decode routines slightly, to allow for
more flexible use.

Tested on:
    Mac OS X/32 (amazon)
    FreeBSD/32 (duty)
    (too minor to require h5committest)
2009-01-27 18:09:35 -05:00
Quincey Koziol
05f1e4f778 [svn-r16366] Description:
Add context pointer for extensible array client callbacks.

Tested on:
    Mac OS X/32 (amazon)
    FreeBSD/32 (duty)
    (too minor to require full h5committest)
2009-01-27 17:43:58 -05:00
Quincey Koziol
c7407a8ccb [svn-r16364] Description:
Clean up a few compiler warnings

Tested on:
    Mac OS X/32 (amazon)
    (too minor to require h5committest)
2009-01-27 16:16:55 -05:00
Scot Breitenfeld
f640047612 [svn-r16362] Description:
*Fixed cd_nelements in nh5pget_filter_c - cd_nelments not pased in or returned correctly. Since 
        cd_nelmts has IN/OUT attributes, fixed the input and
        returned value of cd_nelmnts to satisfy this specification.

 *Fixed 'name' returned in nH5Pget_external_c - if the size of the fortran buffer is larger then 
        the returned string from the function then we need to give HD5packFstring the 
        fortran buffer size so that it fills the remaining unused characters with blanks. Found
        with the gfortran compiler.

Platforms tested: smirom, liberty
2009-01-27 15:48:01 -05:00
Neil Fortner
bf4789092a [svn-r16360] Purpose: Fix potential error with H5Tset_order
Description: H5Tset_order will now properly reject H5T_ORDER_NONE for most
datatypes.  Previously this could cause major problems as the file could not be
flushed.

Tested: jam, smirom (h5committest)
2009-01-27 10:56:48 -05:00
Pedro Vicente Nunes
a6dcbd6a0f [svn-r16358] bug fix
a new line was not inserted at the end of output, causing diff to complain between linux and frebsd

tested: linux , freebsd
2009-01-27 10:33:17 -05:00
Quincey Koziol
5cd054dd5c [svn-r16354] Description:
Bring r16353 back from revise_chunks branch:

        Refactor internal layout information, making it easier to add another
type of chunk index.

Tested on:
	FreeBSD/32 6.3 (duty)
	(other platforms tested with original patch)
2009-01-27 09:00:07 -05:00
Pedro Vicente Nunes
85a1c5c273 [svn-r16352] bug fix: some printf calls instead of parallel_print made some tests to fail
tested: linux parallel
2009-01-27 08:48:04 -05:00
Pedro Vicente Nunes
249163bee6 [svn-r16349] new h5diff output files 2009-01-26 14:38:43 -05:00