From 4770ba7bcccb93bc1dc203effb8387436b027e93 Mon Sep 17 00:00:00 2001
From: Alexandre Julliard <julliard@winehq.org>
Date: Wed, 19 Aug 2009 10:02:50 +0200
Subject: [PATCH] ole32/tests: Skip a string that may not round-trip in all
 codepages.

---
 dlls/ole32/tests/moniker.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dlls/ole32/tests/moniker.c b/dlls/ole32/tests/moniker.c
index 306a892fcfb..b17237771e8 100644
--- a/dlls/ole32/tests/moniker.c
+++ b/dlls/ole32/tests/moniker.c
@@ -1432,6 +1432,16 @@ static void test_file_monikers(void)
     for (i = 0; i < COUNTOF(wszFile); ++i)
     {
         int j ;
+        if (i == 2)
+        {
+            BOOL used;
+            WideCharToMultiByte( CP_ACP, WC_NO_BEST_FIT_CHARS, wszFile[i], -1, NULL, 0, NULL, &used );
+            if (used)
+            {
+                skip("string 2 doesn't round trip in codepage %u\n", GetACP() );
+                continue;
+            }
+        }
         for (j = lstrlenW(wszFile[i]); j > 0; --j)
         {
             wszFile[i][j] = 0;
-- 
GitLab