Alexandre Julliard : ntdll/tests: Skip large integer tests that crash on 64-bit Vista.

Alexandre Julliard julliard at winehq.org
Sat Jan 3 09:11:27 CST 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sat Jan  3 14:52:58 2009 +0100

ntdll/tests: Skip large integer tests that crash on 64-bit Vista.

---

 dlls/ntdll/tests/large_int.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/tests/large_int.c b/dlls/ntdll/tests/large_int.c
index bec8ad9..69de5b7 100644
--- a/dlls/ntdll/tests/large_int.c
+++ b/dlls/ntdll/tests/large_int.c
@@ -286,6 +286,14 @@ static void one_RtlInt64ToUnicodeString_test(int test_num, const largeint2str_t
     STRING ansi_str;
     NTSTATUS result;
 
+#ifdef _WIN64
+    if (largeint2str->value >> 32 == 0xffffffff)  /* this crashes on 64-bit Vista */
+    {
+        skip( "Value ffffffff%08x broken on 64-bit windows\n", (DWORD)largeint2str->value );
+        return;
+    }
+#endif
+
     for (pos = 0; pos < LARGE_STRI_BUFFER_LENGTH; pos++) {
 	expected_str_Buffer[pos] = largeint2str->Buffer[pos];
     } /* for */
@@ -367,6 +375,14 @@ static void one_RtlLargeIntegerToChar_test(int test_num, const largeint2str_t *l
     char dest_str[LARGE_STRI_BUFFER_LENGTH + 1];
     ULONGLONG value;
 
+#ifdef _WIN64
+    if (largeint2str->value >> 32 == 0xffffffff)  /* this crashes on 64-bit Vista */
+    {
+        skip( "Value ffffffff%08x broken on 64-bit windows\n", (DWORD)largeint2str->value );
+        return;
+    }
+#endif
+
     memset(dest_str, '-', LARGE_STRI_BUFFER_LENGTH);
     dest_str[LARGE_STRI_BUFFER_LENGTH] = '\0';
     value = largeint2str->value;




More information about the wine-cvs mailing list