[PATCH] set value to be known bad

Marcus Meissner meissner at suse.de
Wed Aug 15 10:08:50 CDT 2007


Hi,

Initialize the value to be known bad to avoid the
test below failing.

gcc 4.2 and 4.3 like to have "2" in there for some
reason.

Ciao, Marcus
---
 dlls/kernel32/tests/pipe.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/tests/pipe.c b/dlls/kernel32/tests/pipe.c
index fa158ee..18cc233 100644
--- a/dlls/kernel32/tests/pipe.c
+++ b/dlls/kernel32/tests/pipe.c
@@ -970,10 +970,11 @@ static void test_ImpersonateNamedPipeClient(HANDLE hClientToken, DWORD security_
 
     (*test_func)(0, hToken);
 
+    ImpersonationLevel = 0xdeadbeef; /* to avoid false positives */
     ret = GetTokenInformation(hToken, TokenImpersonationLevel, &ImpersonationLevel, sizeof(ImpersonationLevel), &size);
     todo_wine {
     ok(ret, "GetTokenInformation(TokenImpersonationLevel) failed with error %d\n", GetLastError());
-    ok(ImpersonationLevel == SecurityImpersonation, "ImpersonationLevel should have been SecurityImpersonation instead of %d\n", ImpersonationLevel);
+    ok(ImpersonationLevel == SecurityImpersonation, "ImpersonationLevel should have been SecurityImpersonation(%d) instead of %d\n", SecurityImpersonation, ImpersonationLevel);
     }
 
     CloseHandle(hToken);
-- 
1.5.2.4



More information about the wine-patches mailing list