summaryrefslogtreecommitdiffstats
path: root/hl/test/test_ds.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r21157] Description: JIRA HDFFV-7673: fixed segfault when retrieving ↵Scot Breitenfeld2011-07-311-0/+5
| | | | | | | | | the length of a a dimension scale that does not exist. Implemented a test for the situation and added an if condition depending on if the label name exists. Tested: jam (gnu and intel)
* [svn-r20937] Description:Scot Breitenfeld2011-06-071-1/+76
| | | | | | | Added additional attaching and detaching permutation. Tested: jam (intel, gnu)
* [svn-r20923] Description: Added test for permutations of attaching and ↵Scot Breitenfeld2011-05-291-2/+167
| | | | | | detaching DS, see bug HDFFV-7605. Tested: Jam (intel and gnu)
* [svn-r18859] pull r18858 from 185;Allen Byrne2010-05-191-10/+5
| | | | Cange allocation of buffer to use the specified dimensions to calculate the size of a data buffer. Also removed any initialized values.
* [svn-r18819] Maintenance: fixed typo in a comment line and formatting.Elena Pourmal2010-05-151-5/+5
| | | | Platforms tested: jam (minor fix)
* [svn-r18818] Bug fix: Elena Pourmal2010-05-151-0/+147
| | | | | | | | | | | Fixed a bug in the H5DSdetach_scale function when 0 bytes were allocated after the last reference to a dim. scale was removed from the list of references in a VL element of the DIMENSION_LIST attribute; modified the function to comply with the Spec: DIMENSION_LIST attribute is deleted now when no dimension scales left attached. Platforms tested: jam with electric fence, amani amd linew
* [svn-r18419] Description:Quincey Koziol2010-03-181-0/+1
| | | | | | | | | Clean up srcdir querying code more, extracting it into single header file, to avoid compiler warnings. Tested on: Mac OS X/32 10.6.2 (amazon) w/debug & prod Linux/32 2.6 (jam)
* [svn-r18413] Description:Quincey Koziol2010-03-171-20/+2
| | | | | | | | | | | | | | Unify srcdir handling for test executables and allow them to use the srcdir setting from configure time without requiring the 'srcdir' environment variable be set (although you still can, to override the built in setting). Attempted to get this right for Windows builds also. Also add dependency between src/H5Tinit.c and src/libhdf5.settings, so that the test/testcheck_version.sh script works correctly. Tested on: Linux/32 2.6 (jam) Mac OS X/32 10.6.2 (amazon)
* [svn-r18197] Description:Quincey Koziol2010-01-301-244/+244
| | | | | | | | | Trim trailing whitespace from source code files with this command: find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.f90" \) -print |xargs -n 1 sed -i "" 's/[[:blank:]]*$//' Tested on: None - eyeballed only
* [svn-r18011] Description:Quincey Koziol2009-12-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring Coverity changes into the trunk: (also other minor cleanups) r17991: Fix Coverity items 175 and 176. Fixed memory leak on error in print_enum in H5LT.c. r17993: (r17992 was not a Coverity change) Close Coverity issue #206: inconsistently checking whether dt->shared was non-NULL after H5T_alloc() returned a valid 'dt' value (which should guarantee that dt->shared is valid). r17994: Fix Coverity item 149. Fixed file handle leak on error in H5FD_stdio_open. r17995: Fixed Coverity issues 154 to 161: Added H5MP_close routine to error handling in the event *mp has not been freed before error. r17996: Close Coverity issue #126: potentially leaking merged_spans on routine failure. r17997: Fix Coverity items 147 and 148. Fixed resource leaks on error in H5FDloc.c. r17998: Coverity issue 269-272: Added integer result variable to functions that could return negative. Assigned to unsigned after checking. Added H5E_BEGIN_TRY block around H5Tclose and removed H5E_THROW in the catch block. Checked buffer is NULL before free. Changed HGOTO_ERROR outside of the if block to H5E_THROW. r17999: Close Coverity issue #127: release temporary spans in more generic manner. (Also add error checking to previous fix) r18000: Resolved Coverity issues 211 and 212 in H5T.c. Added comments to ignore Coverity warning regarding not checking pointer for NULL, as we are using an assert which catches the issue. r18001: Fix Coverity item 146. Fixed resource leak on error in H5O_layout_copy. r18002: Fix Coverity items 143 and 145. Fixed resource leaks on error in H5D_compact_copy and H5D_contig_copy. r18003: Close Coverity issue #192: close file on error r18004: Fix Coverity issue #125: release temporary spans on error r18005: Resolved Coverity issues 5, 25, and 83 (in H5T.c): Separated embedded functions in order to check for NULL on return of H5I_object before passing into H5T_copy. Check to see if new_dt is NULL within error handling before dereferencing it. Ignore Coverity's dead code warnings as the checks that lead to the code are machine dependent. r18006: Coverity 63,70,73: Checked result of function before assigning to an unsigned variable. r18007: Coverity 78,79: added continue statement if H5Pget_filter2 returns negative. r18008: Fixed Coverity issue # 138: Added support in error handling to free dst pointer (if allocated) on error. r18009: Whitespace & coding style cleanup
* [svn-r17566] Fix for Bug 1562. H5DSis_attached needed to account for ↵Allen Byrne2009-10-011-257/+2217
| | | | | | | | | platform dependent types. Added test and test files for LE and BE dimension scales. Reworked part of test_ds file as part of debug. Added missing H5Tclose in region reference routines. H5DS.c checked for other locations which need to account for platform dependent types in dealing with ds_list_t. Added generator program for test files of LE and BE dimension scales. Tested: local linux, h5committest
* [svn-r16719] clean linux warningsPedro Vicente Nunes2009-04-091-5/+8
| | | | tested: linux
* [svn-r16717] added some print messagesPedro Vicente Nunes2009-04-091-28/+43
| | | | tested: linux
* [svn-r16706] #1538 (B2) Problems with Dim Scale APIs reported by MathworksPedro Vicente Nunes2009-04-081-14/+58
| | | | | | | ISSUE2: the scale index input/output parameter value passed to H5DSiterate_scales was not always incremented (it returns the scale index current iteration). SOLUTION FOR ISSUE2: modified the cycle in H5DSiterate_scales so that the scale index is always incremented TEST: added some test cases with calls to invalid indices and H5DSiterate_scales with return scale indices and visitor data tested: windows, linux
* [svn-r16696] #1538 (B2) Problems with Dim Scale APIs reported by MathworksPedro Vicente Nunes2009-04-081-31/+228
| | | | | | | ISSUE: When some functions are called with an invalid dimension index (for example, greater than the rank of the dataset) the function does not immediately fail, rather asserts down the code. SOLUTION: added this check for H5DSdetach_scale, H5DSset_label, H5DSget_label (the other functions have this check) . H5DSiterate_scales also added a check for an invalid dimension scale index TEST: added some test cases with calls to invalid indices DOCS: Nothing added
* [svn-r16588] Pedro Vicente Nunes2009-03-191-2462/+2480
| | | | | | 1. #1487 (B1) DS memory leaks ISSUE 1: On a "go to" error condition, previously allocated buffers were not freed. NOTE: these are "potential" memory leaks because typically the error conditions do not occur, so the potential memory leaks also do NOT occur. ISSUE 2: A function used to read dimension scales realistic data (topography of the North Atlantic, latitude and longitude) was being called without the data buffer being freed. SOLUTION FOR ISSUE 1: added "free" calls for the allocated buffers on the error sections. SOLUTION FOR ISSUE 2: added a "free" call after the read_data function, after using the buffer (on a H5Dwrite and H5Screate_simple). The read_data function reads both data and dimensions from the ASCII data files. DOCS: no docs added. Done for 1.9 and 1.8 STATUS: Closed bug tested: h5committest
* [svn-r14199] Description:Quincey Koziol2007-10-111-518/+513
| | | | | | | | | | | | | | | | | | | | | Add H5Dcreate to API versioned routines, replacing internal usage with H5Dcreate2 Fix thread-safe error stack initialization for API versioned error stack printing routines. Tested on: FreeBSD/32 6.2 (duty) in debug mode FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Mac OS X/32 10.4.10 (amazon) in debug mode
* [svn-r14193] Description:Quincey Koziol2007-10-081-99/+99
| | | | | | | | | | | | | | | | | | | Make H5Dopen versioned and change all internal usage to use H5Dopen2 Add simple regression test for H5Dopen1 Tested on: FreeBSD/32 6.2 (duty) in debug mode FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Mac OS X/32 10.4.10 (amazon) in debug mode
* [svn-r14126] Description:Quincey Koziol2007-08-291-4/+4
| | | | | | | | | | | | | Move H5Gunlink to deprecated symbol section, replacing internal calls with H5Ldelete. Tested on: FreeBSD/32 6.2 (duty) FreeBSD/64 6.2 (liberty) Linux/32 2.6 (kagiso) Linux/64 2.6 (smirom) Solaris/32 5.10 (linew) Mac OS X/32 10.4.10 (amazon)
* [svn-r14115] Description:Quincey Koziol2007-08-281-4/+4
| | | | | | | | | | | | | | | | | Remove all plain calls to H5Gopen() from source, replacing them with either H5Gopen2(). Add test for H5Gopen1(). Reformatted several pieces of code, to clean them up. Tested on: FreeBSD/32 6.2 (duty) FreeBSD/64 6.2 (liberty) Linux/32 2.6 (kagiso) Linux/64 2.6 (smirom) Solaris/32 5.10 (linew) Mac OS X/32 10.4.10 (amazon)
* [svn-r14104] Description:Quincey Koziol2007-08-231-3/+3
| | | | | | | | | | | | | Pursue calls to H5Gcreate() relentlessly and ruthlessly exterminate them, leaving only a few tame specimens in text files and comments. ;-) Tested on: Mac OS X/32 10.4.10 (amazon) FreeBSD/32 6.2 (duty) FreeBSD/64 6.2 (liberty) Linux/32 2.6 (kagiso) Linux/64 2.6 (smirom) Solaris/32 5.10 (linew)
* [svn-r14060] Corrected verifiy to verify.H. Joe Lee2007-08-091-9/+9
|
* [svn-r13253] Updated all C and C++ style source code files with the THG ↵Albert Cheng2007-02-071-2/+3
| | | | | | | | | copyright notice. Tested platform: Kagiso only since it is only a comment block change. If it works in one machine, it should work in all, I hope. Still need to check the parallel build on copper.
* [svn-r12314] Purpose:Quincey Koziol2006-04-291-52/+55
| | | | | | | | | | | | | | Code cleanup Description: Big clean up on high-level library code, including: - Removing include of HDF5 private header file(!) - Reduce number of compiler warnings - Untangle header files, etc. Platforms tested: FreeBSD 4.11 (sleipnir) w/C++ Linux 2.4/64 (mir) w/C++ & FORTRAN
* [svn-r12229] Purpose:Pedro Vicente Nunes2006-04-121-17/+17
| | | | | | | | | | | | | | | | | | | | | new feature Description: 1) separated the HL library into "public" and "private" header files, with the same caracteristics as the basic library 2) added the public headers to hdf5.h (with a conditional include macro, defined in configure.in) 3) added the path to HL in all Makefile.am 's , because of the inclusion in hdf5.h Solution: Platforms tested: linux 32, 64 AIX solaris with fortran and c++ (one packet table example fails) Misc. update:
* [svn-r11537] Purpose:Albert Cheng2005-10-111-12/+13
| | | | | | Fixed the copyright notice. Tested in heping.
* [svn-r11245] Purpose:Quincey Koziol2005-08-131-273/+273
| | | | | | | | | | | | | | | | | | | | Code cleanup Description: Trim trailing whitespace, which is making 'diff'ing the two branches difficult. Solution: Ran this script in each directory: foreach f (*.[ch] *.cpp) sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f end Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
* [svn-r11091] Purpose:Pedro Vicente Nunes2005-07-201-1/+1
| | | | | | | | | | | | | | | improve documentation by comments changed the return value of H5DSget_num_scales for a case when there are no scales attached from FAIL (-1) to 0 Description: Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10498] Purpose:Pedro Vicente Nunes2005-03-291-14/+237
| | | | | | | | | | | | | | | add 1 test that reads realistic dimension scales data from an ASCII file and generates an hdf5 file with DSs Description: Solution: Platforms tested: linux solaris IRIX Misc. update:
* [svn-r10468] Purpose:Pedro Vicente Nunes2005-03-281-27/+193
| | | | | | | | | | | | | | | | new tests Description: added tests for flot and string datatype scales Solution: Platforms tested: linux solaris AIX Misc. update:
* [svn-r10446] Purpose:Pedro Vicente Nunes2005-03-251-27/+60
| | | | | | | | | | | | | | | | | new test Description: added a test for a scalar scale Solution: Platforms tested: linux solaris AIX IRIX Misc. update:
* [svn-r10416] Purpose:Pedro Vicente Nunes2005-03-251-226/+242
| | | | | | | | | | | | | | | | | | | bug fix Description: when exiting due to a error condition on the goto out instruction there was an attempt to call H5Dvlen_reclaim without checking if buf was null Solution: checket it Platforms tested: linux solaris IRIX64 AIX Misc. update:
* [svn-r10403] Purpose:Pedro Vicente Nunes2005-03-241-2/+24
| | | | | | | | | | | | | | | | | new tests bug fix Description: added new tests for iterartors (on many scales, on group, on deleted scales) fixed a bug on H5DSiterate, an ID of the referenced scale was not being closed on the cycle Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10386] Purpose:Pedro Vicente Nunes2005-03-231-124/+462
| | | | | | | | | | | | | | new tests for is scale, detach scales and iterate scales Description: Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10248] Purpose:Pedro Vicente Nunes2005-03-211-1/+163
| | | | | | | | | | | | | | | | new tests for DS Description: add a test that ckecks if a scale being attached itself has scales attached (error) add a test for the dataset being attached to is a reserved High Level class (image, palette, table) Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10144] Purpose:Quincey Koziol2005-03-041-0/+1
| | | | | | | | | | | | | | | | Bug fix Description: The GASS VFL driver header file was bringing in the <string.h> header file, which several other source code modules needed also, but weren't including explicitly themselves. Solution: Add includes for <string.h> to files which actually need them. Platforms tested: FreeBSD 4.11 (sleipnir) w/C++ as CC Configuration not tested by h5committest...
* [svn-r10090] Purpose:Robert E. McGrath2005-02-251-13/+13
| | | | | | | | | | | | | | | change Description: Minor changes to Dimension Scale API, to bring into alignment with specification. Solution: Platforms tested: verbena,shanti, copper64 Misc. update:
* [svn-r10086] Purpose:Robert E. McGrath2005-02-251-1/+1
| | | | | | | | | | | | | | | bug Description: bug in test Solution: fix bug Platforms tested: arabica,shanti Misc. update:
* [svn-r10068] Purpose:Pedro Vicente Nunes2005-02-231-129/+301
| | | | | | | | | | | | | | news tests (test several ranks for the datasets and scales ) Description: Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10065] Purpose:Pedro Vicente Nunes2005-02-221-52/+186
| | | | | | | | | | | | | | | new definition for H5DSget_label (returns the label size) more tests Description: Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10063] Purpose:Pedro Vicente Nunes2005-02-221-42/+93
| | | | | | | | | | | | | | | changed the function H5DSget_scale_name to return the size of the name buffer added a test Description: Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10059] Purpose:Pedro Vicente Nunes2005-02-211-317/+356
| | | | | | | | | | | | | | | new features Description: added a new function H5DS_is_attached, more tests Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10043] Purpose:Pedro Vicente Nunes2005-02-181-8/+200
| | | | | | | | | | | | | | | | | new features/tests Description: add a couple more tests for the attach/detach pair of functions together with a verify function for it (used only for test purposes) avoided addind the same scale twice to a dimension all seems to be working very well Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10037] Purpose:Pedro Vicente Nunes2005-02-171-15/+125
| | | | | | | | | | | | | | more error checking tests Description: Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10032] Purpose:Pedro Vicente Nunes2005-02-171-86/+186
| | | | | | | | | | | | | | | new tests Description: added a new test for detach_scale, some minor changes in the the detach_scale function Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10019] Purpose:Pedro Vicente Nunes2005-02-161-6/+248
| | | | | | | | | | | | | | | | new test Description: added a test for the iterator function that verifies if the scales meet certain criteria (having the same size as the dimensions sizes of the dataset and they are not empty datasets) Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10014] Purpose:Pedro Vicente Nunes2005-02-161-9/+44
| | | | | | | | | | | | | | | new test Description: add a test for the get number of scales function Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10012] Purpose:Pedro Vicente Nunes2005-02-151-27/+49
| | | | | | | | | | | | | | | new tests Description: added more tests to DS (check if parameters IDs are valid) Solution: Platforms tested: linux solaris Misc. update:
* [svn-r10006] Purpose:Pedro Vicente Nunes2005-02-141-22/+142
| | | | | | | | | | | | | | | | new features Description: added a 1st batch of tests for error conditions Solution: Platforms tested: linux solaris Misc. update:
* [svn-r9913] Purpose:Pedro Vicente Nunes2005-02-011-20/+284
| | | | | | | | | | | | | | | | | DS new function Description: added the H5DSiterate_scales function with 2 operator functions and its tests Solution: Platforms tested: linux solaris aix windows Misc. update: