[PATCH] user32/tests: Add a skip when detecting a Cygwin/XFree86 window.

Francois Gouget fgouget at free.fr
Fri May 7 08:21:06 CDT 2021


The report should show that some tests were skipped and why.

Signed-off-by: Francois Gouget <fgouget at free.fr>
---
Or maybe these checks should be removed entirely since they date back to 2002
and Cygwin/XFree86 may be better behaved nowadays.
---
 dlls/user32/tests/sysparams.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/user32/tests/sysparams.c b/dlls/user32/tests/sysparams.c
index d49d69989f6..2eedf1f629b 100644
--- a/dlls/user32/tests/sysparams.c
+++ b/dlls/user32/tests/sysparams.c
@@ -826,7 +826,10 @@ static void test_SPI_SETBORDER( void )                 /*      6 */
      * running.
      */
     if (FindWindowA( NULL, "Cygwin/XFree86" ))
+    {
+        win_skip("skipping due to Cygwin/XFree86\n");
         return;
+    }
 
     trace("testing SPI_{GET,SET}BORDER\n");
 
@@ -1132,7 +1135,10 @@ static void test_SPI_SETICONTITLEWRAP( void )          /*     26 */
      * running.
      */
     if (FindWindowA( NULL, "Cygwin/XFree86" ))
+    {
+        win_skip("skipping due to Cygwin/XFree86\n");
         return;
+    }
 
     trace("testing SPI_{GET,SET}ICONTITLEWRAP\n");
     SetLastError(0xdeadbeef);
-- 
2.20.1



More information about the wine-devel mailing list