mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 09:11:09 +00:00
windows.perception.stub/tests: Skip some tests when ISpatialSurfaceObserverStatics2 is not supported.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54649
This commit is contained in:
parent
065fbd206d
commit
b7ae278f2b
|
@ -73,15 +73,20 @@ static void test_ObserverStatics(void)
|
||||||
check_interface( factory, &IID_ISpatialSurfaceObserverStatics );
|
check_interface( factory, &IID_ISpatialSurfaceObserverStatics );
|
||||||
|
|
||||||
hr = IActivationFactory_QueryInterface( factory, &IID_ISpatialSurfaceObserverStatics2, (void **)&observer_statics2 );
|
hr = IActivationFactory_QueryInterface( factory, &IID_ISpatialSurfaceObserverStatics2, (void **)&observer_statics2 );
|
||||||
ok( hr == S_OK, "got hr %#lx.\n", hr );
|
if (hr == E_NOINTERFACE /* win1607 */)
|
||||||
|
win_skip("ISpatialSurfaceObserverStatics2 is not supported\n");
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ok( hr == S_OK, "got hr %#lx.\n", hr );
|
||||||
|
|
||||||
value = TRUE;
|
value = TRUE;
|
||||||
hr = ISpatialSurfaceObserverStatics2_IsSupported( observer_statics2, &value );
|
hr = ISpatialSurfaceObserverStatics2_IsSupported( observer_statics2, &value );
|
||||||
ok( hr == S_OK, "got hr %#lx.\n", hr );
|
ok( hr == S_OK, "got hr %#lx.\n", hr );
|
||||||
ok( !value, "got %d.\n", value );
|
ok( !value, "got %d.\n", value );
|
||||||
|
|
||||||
ref = ISpatialSurfaceObserverStatics2_Release( observer_statics2 );
|
ref = ISpatialSurfaceObserverStatics2_Release( observer_statics2 );
|
||||||
ok( ref == 2, "got ref %ld.\n", ref );
|
ok( ref == 2, "got ref %ld.\n", ref );
|
||||||
|
}
|
||||||
ref = IActivationFactory_Release( factory );
|
ref = IActivationFactory_Release( factory );
|
||||||
ok( ref == 1, "got ref %ld.\n", ref );
|
ok( ref == 1, "got ref %ld.\n", ref );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue