Module: wine Branch: master Commit: b7ae278f2b936841c9cb820ffe5ca15ac8fb5068 URL: https://gitlab.winehq.org/wine/wine/-/commit/b7ae278f2b936841c9cb820ffe5ca15...
Author: Francois Gouget fgouget@codeweavers.com Date: Thu Mar 9 13:54:04 2023 +0100
windows.perception.stub/tests: Skip some tests when ISpatialSurfaceObserverStatics2 is not supported.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54649
---
dlls/windows.perception.stub/tests/perception.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/dlls/windows.perception.stub/tests/perception.c b/dlls/windows.perception.stub/tests/perception.c index 3e11f5ea8e7..c83986f4b6c 100644 --- a/dlls/windows.perception.stub/tests/perception.c +++ b/dlls/windows.perception.stub/tests/perception.c @@ -73,15 +73,20 @@ static void test_ObserverStatics(void) check_interface( factory, &IID_ISpatialSurfaceObserverStatics );
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; - hr = ISpatialSurfaceObserverStatics2_IsSupported( observer_statics2, &value ); - ok( hr == S_OK, "got hr %#lx.\n", hr ); - ok( !value, "got %d.\n", value ); + value = TRUE; + hr = ISpatialSurfaceObserverStatics2_IsSupported( observer_statics2, &value ); + ok( hr == S_OK, "got hr %#lx.\n", hr ); + ok( !value, "got %d.\n", value );
- ref = ISpatialSurfaceObserverStatics2_Release( observer_statics2 ); - ok( ref == 2, "got ref %ld.\n", ref ); + ref = ISpatialSurfaceObserverStatics2_Release( observer_statics2 ); + ok( ref == 2, "got ref %ld.\n", ref ); + } ref = IActivationFactory_Release( factory ); ok( ref == 1, "got ref %ld.\n", ref ); }