summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dumpgentest.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-06-29 17:42:09 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-06-29 17:42:09 (GMT)
commitd4eec2cb073e4e9f02ca990cbd93480e526a130e (patch)
tree41fceceb69736cd18354a986d2d34544b55c4ffc /tools/h5dump/h5dumpgentest.c
parent3edde57e73c43474ee146b0c8073fba4eafe9e34 (diff)
downloadhdf5-d4eec2cb073e4e9f02ca990cbd93480e526a130e.zip
hdf5-d4eec2cb073e4e9f02ca990cbd93480e526a130e.tar.gz
hdf5-d4eec2cb073e4e9f02ca990cbd93480e526a130e.tar.bz2
[svn-r8758] Purpose:
h5dump new feature, bug fix Description: added the dump of unmamed types to the file contents fixed a bug in the type array, it was printing invalid characters with the array indices option on Solution: Platforms tested: linux AIX solaris Misc. update:
Diffstat (limited to 'tools/h5dump/h5dumpgentest.c')
-rw-r--r--tools/h5dump/h5dumpgentest.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c
index aaba2e5..16c3db4 100644
--- a/tools/h5dump/h5dumpgentest.c
+++ b/tools/h5dump/h5dumpgentest.c
@@ -4987,15 +4987,25 @@ static void gent_fcontents(void)
assert(ret>=0);
/*-------------------------------------------------------------------------
- * datatype
+ * datatypes
*-------------------------------------------------------------------------
*/
- tid=H5Tcopy(H5T_STD_B8LE);
+ tid=H5Tcopy(H5T_NATIVE_INT);
ret=H5Tcommit(fid, "mytype", tid);
assert(ret>=0);
ret=H5Tclose(tid);
assert(ret>=0);
+ /* no name datatype */
+ tid=H5Tcopy(H5T_NATIVE_INT);
+ ret=H5Tcommit(fid, "mytype2", tid);
+ assert(ret>=0);
+ write_dset(fid,1,dims,"dsetmytype2",tid,buf);
+ ret=H5Gunlink(fid,"mytype2");
+ assert(ret>=0);
+ ret=H5Tclose(tid);
+ assert(ret>=0);
+
/*-------------------------------------------------------------------------
* close
*-------------------------------------------------------------------------
@@ -5010,12 +5020,12 @@ static void gent_fcontents(void)
ret=H5Fclose(fid);
assert(ret>=0);
-
-
}
+
+
/*-------------------------------------------------------------------------
* Function: gent_null_space
*