Nikolay Sivov : scrrun/tests: Skip some tests if drive is not ready.
Alexandre Julliard
julliard at winehq.org
Wed Mar 22 15:52:35 CDT 2017
Module: wine
Branch: master
Commit: 888f2c76dd7bccb408bbfcf16326a95ba54e585b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=888f2c76dd7bccb408bbfcf16326a95ba54e585b
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Mar 22 20:16:52 2017 +0300
scrrun/tests: Skip some tests if drive is not ready.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/scrrun/tests/filesystem.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/dlls/scrrun/tests/filesystem.c b/dlls/scrrun/tests/filesystem.c
index 57aacf6..bb926c2 100644
--- a/dlls/scrrun/tests/filesystem.c
+++ b/dlls/scrrun/tests/filesystem.c
@@ -1397,6 +1397,17 @@ static void test_DriveCollection(void)
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(ready == VARIANT_TRUE, "got %x\n", ready);
+ if (ready != VARIANT_TRUE) {
+ hr = IDrive_get_DriveLetter(drive, &str);
+ ok(hr == S_OK, "got 0x%08x\n", hr);
+
+ skip("Drive %s is not ready, skipping some tests\n", wine_dbgstr_w(str));
+
+ VariantClear(&var);
+ SysFreeString(str);
+ continue;
+ }
+
V_VT(&size) = VT_EMPTY;
hr = IDrive_get_TotalSize(drive, &size);
ok(hr == S_OK, "got 0x%08x\n", hr);
More information about the wine-cvs
mailing list