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

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-03-22 20:16:52 +03:00 committed by Alexandre Julliard
parent 40a241469e
commit 888f2c76dd
1 changed files with 11 additions and 0 deletions

View File

@ -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);