From 7b1f1c7123373e941aaa79500a7940e87e76718e Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Fri, 18 Sep 2009 15:14:35 +0100 Subject: [PATCH] oledb32/tests: Skip tests on older versions of the conversion library. --- dlls/oledb32/tests/convert.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dlls/oledb32/tests/convert.c b/dlls/oledb32/tests/convert.c index 5ca06c39e3e..cc67ab28957 100644 --- a/dlls/oledb32/tests/convert.c +++ b/dlls/oledb32/tests/convert.c @@ -203,6 +203,16 @@ static void test_canconvert(void) return; } + /* Some older versions of the library don't support several conversions, we'll skip + if we have such a library */ + hr = IDataConvert_CanConvert(convert, DBTYPE_EMPTY, DBTYPE_DBTIMESTAMP); + if(hr == S_FALSE) + { + win_skip("Doesn't handle DBTYPE_EMPTY -> DBTYPE_DBTIMESTAMP conversion so skipping\n"); + IDataConvert_Release(convert); + return; + } + for(src_idx = 0; src_idx < sizeof(simple_convert) / sizeof(simple_convert[0]); src_idx++) for(dst_idx = 0; dst_idx < sizeof(simple_convert) / sizeof(simple_convert[0]); dst_idx++) {