summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2013-08-28 19:35:34 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2013-08-28 19:35:34 (GMT)
commit9e0fcdc3970f576786332eacb1929b91701614ba (patch)
treecf72cf28520072be5c6b8b2a61e0dafd7552f6ff
parent55c2af580c11034b210df5d9efdd6b9c4d802424 (diff)
downloadhdf5-9e0fcdc3970f576786332eacb1929b91701614ba.zip
hdf5-9e0fcdc3970f576786332eacb1929b91701614ba.tar.gz
hdf5-9e0fcdc3970f576786332eacb1929b91701614ba.tar.bz2
[svn-r24080] Since dtransform.c uses H5T_conv_i_f and H5T_conv_f_i, I added them back for OpenVMS. But I took out the test case in dtransform.c which has problem. See Jira issue VMS-8.
Tested on jam.
-rw-r--r--src/H5T.c5
-rw-r--r--test/dtransform.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/src/H5T.c b/src/H5T.c
index c39b532..c480a47 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -1051,11 +1051,10 @@ H5T_init_interface(void)
status |= H5T_register(H5T_PERS_SOFT, "i_i", fixedpt, fixedpt, H5T__conv_i_i, H5AC_dxpl_id, FALSE);
status |= H5T_register(H5T_PERS_SOFT, "f_f", floatpt, floatpt, H5T__conv_f_f, H5AC_dxpl_id, FALSE);
-#ifndef H5_VMS
- /* Disable these two conversion function because OpenVMS has trouble with them - SLU 2013/8/26 */
+
status |= H5T_register(H5T_PERS_SOFT, "i_f", fixedpt, floatpt, H5T__conv_i_f, H5AC_dxpl_id, FALSE);
status |= H5T_register(H5T_PERS_SOFT, "f_i", floatpt, fixedpt, H5T__conv_f_i, H5AC_dxpl_id, FALSE);
-#endif
+
status |= H5T_register(H5T_PERS_SOFT, "s_s", string, string, H5T__conv_s_s, H5AC_dxpl_id, FALSE);
status |= H5T_register(H5T_PERS_SOFT, "b_b", bitfield, bitfield, H5T__conv_b_b, H5AC_dxpl_id, FALSE);
status |= H5T_register(H5T_PERS_SOFT, "ibo", fixedpt, fixedpt, H5T__conv_order, H5AC_dxpl_id, FALSE);
diff --git a/test/dtransform.c b/test/dtransform.c
index 9c78043..ea1a619 100644
--- a/test/dtransform.c
+++ b/test/dtransform.c
@@ -298,12 +298,17 @@ int main(void)
TEST_TYPE_CONTIG(dxpl_id_c_to_f, long, H5T_NATIVE_LONG, "long", windchillFfloat, 1);
TEST_TYPE_CONTIG(dxpl_id_utrans_inv, unsigned long, H5T_NATIVE_ULONG, "ulong", transformData, 0);
+#ifndef H5_VMS
#ifdef H5_LLONG_TO_FP_CAST_WORKS
TEST_TYPE_CONTIG(dxpl_id_c_to_f, long long, H5T_NATIVE_LLONG, "llong", windchillFfloat, 1);
#else
TESTING("contiguous, with type conversion (float->llong)")
SKIPPED()
#endif
+#else /*H5_VMS*/
+ TESTING("contiguous, with type conversion (float->llong): some problem in library's conversion")
+ SKIPPED()
+#endif /*H5_VMS*/
#ifdef H5_ULLONG_TO_FP_CAST_WORKS
TEST_TYPE_CONTIG(dxpl_id_utrans_inv, unsigned long long, H5T_NATIVE_ULLONG, "ullong", transformData, 0);