From dcb67841d2878b3268e7acab389870c92ee01770 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Mon, 18 Jul 2005 09:08:58 +0000 Subject: [PATCH] Don't run tests on platforms that don't support WindowStation calls. --- dlls/user/tests/winstation.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dlls/user/tests/winstation.c b/dlls/user/tests/winstation.c index 9f2358673c6..4bc19418d05 100644 --- a/dlls/user/tests/winstation.c +++ b/dlls/user/tests/winstation.c @@ -203,5 +203,15 @@ static void test_handles(void) START_TEST(winstation) { + /* Check whether this platform supports WindowStation calls */ + + SetLastError( 0xdeadbeef ); + GetProcessWindowStation(); + if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) + { + trace("WindowStation calls not supported on this platform\n"); + return; + } + test_handles(); } -- 2.11.4.GIT