[PATCH] scrrun/tests: Skip some tests if drive is not ready

Nikolay Sivov nsivov at codeweavers.com
Wed Mar 22 12:16:52 CDT 2017


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 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 57aacf6e25..bb926c2c4b 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);
-- 
2.11.0




More information about the wine-patches mailing list