summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dumpgentest.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-07-11 14:03:53 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-07-11 14:03:53 (GMT)
commit61cb9cc54727f9b7658eaadd2abaeedb100b9fc1 (patch)
tree0305f45eac28c61c115ad9b00cd1fc82255f18fa /tools/h5dump/h5dumpgentest.c
parent91d63fa0ae9cfe13ef73bd6d4c05b1e47b4a6ebf (diff)
downloadhdf5-61cb9cc54727f9b7658eaadd2abaeedb100b9fc1.zip
hdf5-61cb9cc54727f9b7658eaadd2abaeedb100b9fc1.tar.gz
hdf5-61cb9cc54727f9b7658eaadd2abaeedb100b9fc1.tar.bz2
[svn-r22550] Correct datatypes in generator and update files for test.
Tested: local linux with cmake
Diffstat (limited to 'tools/h5dump/h5dumpgentest.c')
-rw-r--r--tools/h5dump/h5dumpgentest.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c
index da78089..a9b5a62 100644
--- a/tools/h5dump/h5dumpgentest.c
+++ b/tools/h5dump/h5dumpgentest.c
@@ -8014,8 +8014,8 @@ static void gent_nested_compound_dt(void) { /* test nested data type */
space = H5Screate_simple(1, &sdim, &maxdim);
type = H5Tcreate (H5T_COMPOUND, sizeof(dset1[0]));
- H5Tinsert(type, "a_name", HOFFSET(dset1_t, a), H5T_STD_I32BE);
- H5Tinsert(type, "b_name", HOFFSET(dset1_t, b), H5T_IEEE_F32BE);
+ H5Tinsert(type, "a_name", HOFFSET(dset1_t, a), H5T_STD_I32LE);
+ H5Tinsert(type, "b_name", HOFFSET(dset1_t, b), H5T_IEEE_F32LE);
dataset = H5Dcreate2(fid, "/dset1", type, space, H5P_DEFAULT, create_plist, H5P_DEFAULT);
@@ -8058,8 +8058,8 @@ static void gent_nested_compound_dt(void) { /* test nested data type */
/* shared data type 1 */
type1 = H5Tcreate(H5T_COMPOUND, sizeof(dset1_t));
- H5Tinsert(type1, "int_name", HOFFSET(dset1_t, a), H5T_STD_I32BE);
- H5Tinsert(type1, "float_name", HOFFSET(dset1_t, b), H5T_IEEE_F32BE);
+ H5Tinsert(type1, "int_name", HOFFSET(dset1_t, a), H5T_STD_I32LE);
+ H5Tinsert(type1, "float_name", HOFFSET(dset1_t, b), H5T_IEEE_F32LE);
H5Tcommit2(fid, "type1", type1, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
group = H5Gcreate2(fid, "/group1", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
@@ -8067,12 +8067,12 @@ static void gent_nested_compound_dt(void) { /* test nested data type */
type2 = H5Tcreate (H5T_COMPOUND, sizeof(dset3_t));
ndims = 1; dim[0] = 5;
- array_dt = H5Tarray_create2(H5T_STD_I32BE, ndims, dim);
+ array_dt = H5Tarray_create2(H5T_STD_I32LE, ndims, dim);
H5Tinsert(type2, "int_name", HOFFSET(dset3_t, a), array_dt);
H5Tclose(array_dt);
ndims = 2; dim[0] = 5; dim[1] = 6;
- array_dt = H5Tarray_create2(H5T_IEEE_F32BE, ndims, dim);
+ array_dt = H5Tarray_create2(H5T_IEEE_F32LE, ndims, dim);
H5Tinsert(type2, "float_name", HOFFSET(dset3_t, b), array_dt);
H5Tclose(array_dt);
@@ -8083,7 +8083,7 @@ static void gent_nested_compound_dt(void) { /* test nested data type */
H5Dwrite(dataset, type2, H5S_ALL, H5S_ALL, H5P_DEFAULT, dset3);
dataset = H5Dcreate2(fid, "/dset5", type1, space, H5P_DEFAULT, create_plist, H5P_DEFAULT);
- H5Dwrite(dataset, type1, H5S_ALL, H5S_ALL, H5P_DEFAULT, dset5);
+ H5Dwrite(dataset, type1, H5S_ALL, H5S_ALL, H5P_DEFAULT, dset1);
H5Tclose(type1);
H5Tclose(type2);