Alexandre Julliard : mscoree/tests: Comment out a couple of tests that crash on Windows.

Alexandre Julliard julliard at winehq.org
Fri Aug 27 11:11:21 CDT 2010


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Aug 27 15:17:29 2010 +0200

mscoree/tests: Comment out a couple of tests that crash on Windows.

---

 dlls/mscoree/tests/mscoree.c |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/dlls/mscoree/tests/mscoree.c b/dlls/mscoree/tests/mscoree.c
index 59ba58e..0536ba1 100644
--- a/dlls/mscoree/tests/mscoree.c
+++ b/dlls/mscoree/tests/mscoree.c
@@ -60,8 +60,11 @@ static void test_versioninfo(void)
     DWORD size, path_len;
     HRESULT hr;
 
-    hr =  pGetCORVersion(NULL, MAX_PATH, &size);
-    ok(hr == E_POINTER,"GetCORVersion returned %08x\n", hr);
+    if (0)  /* crashes on <= w2k3 */
+    {
+        hr = pGetCORVersion(NULL, MAX_PATH, &size);
+        ok(hr == E_POINTER,"GetCORVersion returned %08x\n", hr);
+    }
 
     hr =  pGetCORVersion(version, 1, &size);
     ok(hr == HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER),"GetCORVersion returned %08x\n", hr);
@@ -81,8 +84,11 @@ static void test_versioninfo(void)
     hr = pGetCORSystemDirectory(path, path_len-1 , &size);
     ok(hr == HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), "GetCORSystemDirectory returned %08x\n", hr);
 
-    hr = pGetCORSystemDirectory(NULL, MAX_PATH , &size);
-    ok(hr == HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), "GetCORSystemDirectory returned %08x\n", hr);
+    if (0)  /* crashes on <= w2k3 */
+    {
+        hr = pGetCORSystemDirectory(NULL, MAX_PATH , &size);
+        ok(hr == HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), "GetCORSystemDirectory returned %08x\n", hr);
+    }
 
     hr = pGetCORSystemDirectory(path, MAX_PATH , NULL);
     ok(hr == E_POINTER,"GetCORSystemDirectory returned %08x\n", hr);




More information about the wine-cvs mailing list