summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeon Arber <larber@ncsa.uiuc.edu>2004-10-26 21:48:15 (GMT)
committerLeon Arber <larber@ncsa.uiuc.edu>2004-10-26 21:48:15 (GMT)
commit22696535f56b48b23d573788bd3b48671225fafd (patch)
tree205ab8794167c64fabf364de1d4789c782a99d9b /test
parent1a869e39dc2827ba4fb4f4df6e92513ab0e8c283 (diff)
downloadhdf5-22696535f56b48b23d573788bd3b48671225fafd.zip
hdf5-22696535f56b48b23d573788bd3b48671225fafd.tar.gz
hdf5-22696535f56b48b23d573788bd3b48671225fafd.tar.bz2
[svn-r9464] Purpose:
Bug fix. Description: dtransform test still failed on windows because it was attempting to create a ullong dataset. Solution: Removed creation of ullong dataset as well if H5_ULLONG_TO_FP_CAST_WORKS was not defined. Platforms tested: windows
Diffstat (limited to 'test')
-rw-r--r--test/dtransform.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/dtransform.c b/test/dtransform.c
index 73e9690..da8b95c 100644
--- a/test/dtransform.c
+++ b/test/dtransform.c
@@ -160,7 +160,11 @@ int main(void)
if((err = H5Dclose(dset_id_long))<0) TEST_ERROR;
if((err = H5Dclose(dset_id_ulong))<0) TEST_ERROR;
if((err = H5Dclose(dset_id_llong))<0) TEST_ERROR;
+
+#ifdef H5_ULLONG_TO_FP_CAST_WORKS
if((err = H5Dclose(dset_id_ullong))<0) TEST_ERROR;
+#endif
+
if((err = H5Dclose(dset_id_float))<0) TEST_ERROR;
if((err = H5Dclose(dset_id_double))<0) TEST_ERROR;
if((err = H5Dclose(dset_id_ldouble))<0) TEST_ERROR;
@@ -232,10 +236,10 @@ int init_test(void)
if((dset_id_llong = H5Dcreate(file_id, "/transformtest_llong", H5T_NATIVE_LLONG, dataspace, H5P_DEFAULT))<0) TEST_ERROR;
if((err = H5Dwrite(dset_id_llong, H5T_NATIVE_FLOAT, H5S_ALL, H5S_ALL, dxpl_id_f_to_c, windchillFfloat))<0) TEST_ERROR;
-
+#ifdef H5_ULLONG_TO_FP_CAST_WORKS
if((dset_id_ullong = H5Dcreate(file_id, "/transformtest_ullong", H5T_NATIVE_ULLONG, dataspace, H5P_DEFAULT))<0) TEST_ERROR;
if((err = H5Dwrite(dset_id_ullong, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, dxpl_id_utrans, transformData))<0) TEST_ERROR;
-
+#endif
if((dset_id_short = H5Dcreate(file_id, "/transformtest_short", H5T_NATIVE_SHORT, dataspace, H5P_DEFAULT))<0) TEST_ERROR;
if((err = H5Dwrite(dset_id_short, H5T_NATIVE_FLOAT, H5S_ALL, H5S_ALL, dxpl_id_f_to_c, windchillFfloat))<0) TEST_ERROR;