[svn-r8262] Purpose: Avoid bug in some systems.

Description:  unsigned long or unsigned long long failed to be converted to
float or double during software conversion on some systems.  It's believed
there are bugs on those systems(modi4, premium, o2, arabica).

Solution:  temporarily disable these tests.

Platforms tested:  Simply comment out.  No need to do test.
This commit is contained in:
Raymond Lu 2004-03-16 14:55:18 -05:00
parent f217777cdb
commit d9d34b46e3

View File

@ -5422,16 +5422,26 @@ run_int_float_conv(const char *name)
nerrors += test_conv_int_float(name, H5T_NATIVE_LONG, H5T_NATIVE_FLOAT);
nerrors += test_conv_int_float(name, H5T_NATIVE_LONG, H5T_NATIVE_DOUBLE);
nerrors += test_conv_int_float(name, H5T_NATIVE_ULONG, H5T_NATIVE_FLOAT);
nerrors += test_conv_int_float(name, H5T_NATIVE_ULONG, H5T_NATIVE_DOUBLE);
/* Temporarily disable these tests for software conversion. They fail on
* some systems(like modi4, premium, o2 and arabica)
*/
if(!strcmp(name, "hw")) {
nerrors += test_conv_int_float(name, H5T_NATIVE_ULONG, H5T_NATIVE_FLOAT);
nerrors += test_conv_int_float(name, H5T_NATIVE_ULONG, H5T_NATIVE_DOUBLE);
}
#endif
#if H5_SIZEOF_LONG_LONG!=H5_SIZEOF_LONG
nerrors += test_conv_int_float(name, H5T_NATIVE_LLONG, H5T_NATIVE_FLOAT);
nerrors += test_conv_int_float(name, H5T_NATIVE_LLONG, H5T_NATIVE_DOUBLE);
nerrors += test_conv_int_float(name, H5T_NATIVE_ULLONG, H5T_NATIVE_FLOAT);
nerrors += test_conv_int_float(name, H5T_NATIVE_ULLONG, H5T_NATIVE_DOUBLE);
/* Temporarily disable these tests for software conversion. They fail on
* some systems(like modi4, premium, o2 and arabica)
*/
if(!strcmp(name, "hw")) {
nerrors += test_conv_int_float(name, H5T_NATIVE_ULLONG, H5T_NATIVE_FLOAT);
nerrors += test_conv_int_float(name, H5T_NATIVE_ULLONG, H5T_NATIVE_DOUBLE);
}
#endif
return nerrors;