André Zwing : gameux/tests: Skip gamestatistic tests on win10 >= 1803.

Alexandre Julliard julliard at winehq.org
Wed Dec 1 15:23:52 CST 2021


Module: wine
Branch: master
Commit: 6282718c73bdf1648f18764c51671a57cef3c526
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6282718c73bdf1648f18764c51671a57cef3c526

Author: André Zwing <nerv at dawncrow.de>
Date:   Wed Dec  1 18:17:03 2021 +0100

gameux/tests: Skip gamestatistic tests on win10 >= 1803.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51716
Signed-off-by: André Zwing <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gameux/tests/gamestatistics.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/gameux/tests/gamestatistics.c b/dlls/gameux/tests/gamestatistics.c
index c29c6b44470..aa10156f1ab 100644
--- a/dlls/gameux/tests/gamestatistics.c
+++ b/dlls/gameux/tests/gamestatistics.c
@@ -158,6 +158,12 @@ static void test_gamestatisticsmgr( void )
     /* this should fail, because statistics don't exist yet */
     gs = (void *)0xdeadbeef;
     hr = IGameStatisticsMgr_GetGameStatistics(gsm, sExeName, GAMESTATS_OPEN_OPENONLY, &dwOpenResult, &gs);
+    if (hr != HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND))
+    {
+        /* With win10 1803 game explorer functionality was removed and gameux became a stub */
+        win_skip("gameux is partially stubbed, skipping tests\n");
+        return;
+    }
     ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "GetGameStatistics returned unexpected value: 0x%08x\n", hr);
     ok(gs == NULL, "Expected output pointer to be NULL, got %s\n",
        (gs == (void *)0xdeadbeef ? "deadbeef" : "neither NULL nor deadbeef"));




More information about the wine-cvs mailing list