James Hawkins : rpcrt4: Fix a test that fails in win2k3.

Alexandre Julliard julliard at winehq.org
Tue Jul 8 06:11:03 CDT 2008


Module: wine
Branch: master
Commit: 490443ed4bfea82bcac55963931a840e8410b52b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=490443ed4bfea82bcac55963931a840e8410b52b

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Mon Jul  7 23:51:59 2008 -0500

rpcrt4: Fix a test that fails in win2k3.

---

 dlls/rpcrt4/tests/ndr_marshall.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/rpcrt4/tests/ndr_marshall.c b/dlls/rpcrt4/tests/ndr_marshall.c
index fa19674..969cce2 100644
--- a/dlls/rpcrt4/tests/ndr_marshall.c
+++ b/dlls/rpcrt4/tests/ndr_marshall.c
@@ -1848,7 +1848,9 @@ static void test_ndr_buffer(void)
     ok(ret == StubMsg.Buffer, "NdrGetBuffer should have returned the same value as StubMsg.Buffer instead of %p\n", ret);
     ok(RpcMessage.Handle != NULL, "RpcMessage.Handle should not have been NULL\n");
     ok(RpcMessage.Buffer != NULL, "RpcMessage.Buffer should not have been NULL\n");
-    ok(RpcMessage.BufferLength == 10, "RpcMessage.BufferLength should have been 10 instead of %d\n", RpcMessage.BufferLength);
+    ok(RpcMessage.BufferLength == 10 ||
+       broken(RpcMessage.BufferLength == 12), /* win2k */
+       "RpcMessage.BufferLength should have been 10 instead of %d\n", RpcMessage.BufferLength);
     ok(RpcMessage.RpcFlags == 0, "RpcMessage.RpcFlags should have been 0x0 instead of 0x%lx\n", RpcMessage.RpcFlags);
     ok(StubMsg.Buffer != NULL, "Buffer should not have been NULL\n");
     ok(!StubMsg.BufferStart, "BufferStart should have been NULL instead of %p\n", StubMsg.BufferStart);




More information about the wine-cvs mailing list