Skip to content

Commit

Permalink
scrrun/tests: Skip some tests if drive is not ready.
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Sivov <[email protected]>
Signed-off-by: Alexandre Julliard <[email protected]>
  • Loading branch information
nsivov authored and julliard committed Mar 22, 2017
1 parent 40a2414 commit 888f2c7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dlls/scrrun/tests/filesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 888f2c7

Please sign in to comment.