diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2011-04-20 20:51:22 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2011-04-20 20:51:22 (GMT) |
commit | 614e46f270a2acc01a9d15c456420320f207086b (patch) | |
tree | 284b19d2abb4231f366169835d2965a653de7f93 /tools/testfiles | |
parent | 27be7d1e2d95618c72bbefbed54e644b3b2d21ae (diff) | |
download | hdf5-614e46f270a2acc01a9d15c456420320f207086b.zip hdf5-614e46f270a2acc01a9d15c456420320f207086b.tar.gz hdf5-614e46f270a2acc01a9d15c456420320f207086b.tar.bz2 |
[svn-r20577] Bug 1386 - allowing dimension size to be zero. I added test cases in the tests for h5dump and h5diff. I also added the
test cases in the CMAKE script.
Tested on jam, linew, and amani. Tested CMAKE on jam.
Diffstat (limited to 'tools/testfiles')
-rw-r--r-- | tools/testfiles/zerodim.ddl | 19 | ||||
-rw-r--r-- | tools/testfiles/zerodim.h5 | bin | 0 -> 1528 bytes |
2 files changed, 19 insertions, 0 deletions
diff --git a/tools/testfiles/zerodim.ddl b/tools/testfiles/zerodim.ddl new file mode 100644 index 0000000..49c0a4c --- /dev/null +++ b/tools/testfiles/zerodim.ddl @@ -0,0 +1,19 @@ +############################# +Expected output for 'h5dump zerodim.h5' +############################# +HDF5 "zerodim.h5" { +GROUP "/" { + ATTRIBUTE "attr of 0 dimension size" { + DATATYPE H5T_STD_U32LE + DATASPACE SIMPLE { ( 0, 0 ) / ( 0, 0 ) } + DATA { + } + } + DATASET "dset of 0 dimension size" { + DATATYPE H5T_STD_I32BE + DATASPACE SIMPLE { ( 0, 0 ) / ( 0, 0 ) } + DATA { + } + } +} +} diff --git a/tools/testfiles/zerodim.h5 b/tools/testfiles/zerodim.h5 Binary files differnew file mode 100644 index 0000000..6939353 --- /dev/null +++ b/tools/testfiles/zerodim.h5 |