summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dumpgentest.c
diff options
context:
space:
mode:
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
*