Commit 888f2c76 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

scrrun/tests: Skip some tests if drive is not ready.

parent 40a24146
...@@ -1397,6 +1397,17 @@ static void test_DriveCollection(void) ...@@ -1397,6 +1397,17 @@ static void test_DriveCollection(void)
ok(hr == S_OK, "got 0x%08x\n", hr); ok(hr == S_OK, "got 0x%08x\n", hr);
ok(ready == VARIANT_TRUE, "got %x\n", ready); 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; V_VT(&size) = VT_EMPTY;
hr = IDrive_get_TotalSize(drive, &size); hr = IDrive_get_TotalSize(drive, &size);
ok(hr == S_OK, "got 0x%08x\n", hr); ok(hr == S_OK, "got 0x%08x\n", hr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment