Huw Davies : oledb32/tests: Skip tests on older versions of the conversion library.
Alexandre Julliard
julliard at winehq.org
Tue Sep 22 13:54:51 CDT 2009
Module: wine
Branch: master
Commit: f4fb963e2c1b0e5e54ffdd2b337ce6d4ffb054b2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f4fb963e2c1b0e5e54ffdd2b337ce6d4ffb054b2
Author: Huw Davies <huw at codeweavers.com>
Date: Fri Sep 18 15:14:35 2009 +0100
oledb32/tests: Skip tests on older versions of the conversion library.
---
dlls/oledb32/tests/convert.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/oledb32/tests/convert.c b/dlls/oledb32/tests/convert.c
index cc67ab2..8ff1609 100644
--- a/dlls/oledb32/tests/convert.c
+++ b/dlls/oledb32/tests/convert.c
@@ -213,6 +213,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++)
{
More information about the wine-cvs
mailing list