James Hawkins : ntdll: Fix a few tests that fail in win2k3.
Alexandre Julliard
julliard at winehq.org
Wed May 14 15:08:23 CDT 2008
Module: wine
Branch: master
Commit: cfce5be4ce3b515550fb8759c63f9242f3a1a02a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cfce5be4ce3b515550fb8759c63f9242f3a1a02a
Author: James Hawkins <jhawkins at codeweavers.com>
Date: Wed May 14 14:34:35 2008 -0500
ntdll: Fix a few tests that fail in win2k3.
---
dlls/ntdll/tests/rtlstr.c | 29 ++++++++++++++++-------------
1 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/dlls/ntdll/tests/rtlstr.c b/dlls/ntdll/tests/rtlstr.c
index 5239de0..aa4a391 100644
--- a/dlls/ntdll/tests/rtlstr.c
+++ b/dlls/ntdll/tests/rtlstr.c
@@ -233,15 +233,18 @@ static void test_RtlInitUnicodeStringEx(void)
ok(result == STATUS_NAME_TOO_LONG,
"pRtlInitUnicodeStringEx(&uni, 0) returns %x, expected %x\n",
result, STATUS_NAME_TOO_LONG);
- ok(uni.Length == 12345,
- "pRtlInitUnicodeStringEx(&uni, 0) sets Length to %u, expected %u\n",
- uni.Length, 12345);
- ok(uni.MaximumLength == 12345,
- "pRtlInitUnicodeStringEx(&uni, 0) sets MaximumLength to %u, expected %u\n",
- uni.MaximumLength, 12345);
- ok(uni.Buffer == (void *) 0xdeadbeef,
- "pRtlInitUnicodeStringEx(&uni, 0) sets Buffer to %p, expected %x\n",
- uni.Buffer, 0xdeadbeef);
+ ok(uni.Length == 12345 ||
+ uni.Length == 0, /* win2k3 */
+ "pRtlInitUnicodeStringEx(&uni, 0) sets Length to %u, expected 12345 or 0\n",
+ uni.Length);
+ ok(uni.MaximumLength == 12345 ||
+ uni.MaximumLength == 0, /* win2k3 */
+ "pRtlInitUnicodeStringEx(&uni, 0) sets MaximumLength to %u, expected 12345 or 0\n",
+ uni.MaximumLength);
+ ok(uni.Buffer == (void *) 0xdeadbeef ||
+ uni.Buffer == teststring2, /* win2k3 */
+ "pRtlInitUnicodeStringEx(&uni, 0) sets Buffer to %p, expected %x or %p\n",
+ uni.Buffer, 0xdeadbeef, teststring2);
uni.Length = 12345;
uni.MaximumLength = 12345;
@@ -1477,8 +1480,8 @@ static const int2str_t int2str[] = {
{ 2, 1000, 10, 33, "1111101000\0------------------------", STATUS_SUCCESS},
{ 2, 10000, 14, 33, "10011100010000\0--------------------", STATUS_SUCCESS},
{ 2, 32767, 15, 33, "111111111111111\0-------------------", STATUS_SUCCESS},
- { 2, 32768, 16, 33, "1000000000000000\0------------------", STATUS_SUCCESS},
- { 2, 65535, 16, 33, "1111111111111111\0------------------", STATUS_SUCCESS},
+/* { 2, 32768, 16, 33, "1000000000000000\0------------------", STATUS_SUCCESS}, broken on windows */
+/* { 2, 65535, 16, 33, "1111111111111111\0------------------", STATUS_SUCCESS}, broken on windows */
{ 2, 65536, 17, 33, "10000000000000000\0-----------------", STATUS_SUCCESS},
{ 2, 100000, 17, 33, "11000011010100000\0-----------------", STATUS_SUCCESS},
{ 2, 1000000, 20, 33, "11110100001001000000\0--------------", STATUS_SUCCESS},
@@ -1532,8 +1535,8 @@ static const int2str_t int2str[] = {
{16, 4294967294U, 8, 9, "FFFFFFFE\0--------------------------", STATUS_SUCCESS},
{16, 4294967295U, 8, 9, "FFFFFFFF\0--------------------------", STATUS_SUCCESS}, /* max unsigned int */
- { 2, 32768, 16, 17, "1000000000000000\0------------------", STATUS_SUCCESS},
- { 2, 32768, 16, 16, "1000000000000000-------------------", STATUS_SUCCESS},
+/* { 2, 32768, 16, 17, "1000000000000000\0------------------", STATUS_SUCCESS}, broken on windows */
+/* { 2, 32768, 16, 16, "1000000000000000-------------------", STATUS_SUCCESS}, broken on windows */
{ 2, 65536, 17, 18, "10000000000000000\0-----------------", STATUS_SUCCESS},
{ 2, 65536, 17, 17, "10000000000000000------------------", STATUS_SUCCESS},
{ 2, 131072, 18, 19, "100000000000000000\0----------------", STATUS_SUCCESS},
More information about the wine-cvs
mailing list