Stefan Leichter : rasapi32: Skip RasEnumDevicesA tests on configuration problems.

Alexandre Julliard julliard at winehq.org
Mon Jul 28 08:06:56 CDT 2008


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

Author: Stefan Leichter <Stefan.Leichter at camline.com>
Date:   Sat Jul 26 10:30:22 2008 +0200

rasapi32: Skip RasEnumDevicesA tests on configuration problems.

---

 dlls/rasapi32/tests/rasapi.c |    6 +++++-
 include/raserror.h           |    1 +
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/dlls/rasapi32/tests/rasapi.c b/dlls/rasapi32/tests/rasapi.c
index 94026ab..da733a1 100644
--- a/dlls/rasapi32/tests/rasapi.c
+++ b/dlls/rasapi32/tests/rasapi.c
@@ -55,7 +55,11 @@ static void test_rasenum(void)
 
     /* create the return buffer */
     result = pRasEnumDevicesA(NULL, &bufsize, &cDevices);
-    trace("RasEnumDevicesA: buffersize %d\n", cb);
+    if(ERROR_RASMAN_CANNOT_INITIALIZE == result) {
+        win_skip("RAS configuration problem\n");
+        return;
+    }
+    trace("RasEnumDevicesA: returned %d buffersize %d\n", result, cb);
     ok(result == ERROR_BUFFER_TOO_SMALL,
     "Expected ERROR_BUFFER_TOO_SMALL, got %08d\n", result);
 
diff --git a/include/raserror.h b/include/raserror.h
index e0f7d44..ad38cd3 100644
--- a/include/raserror.h
+++ b/include/raserror.h
@@ -22,5 +22,6 @@
 #define RASBASE                                600
 #define ERROR_BUFFER_TOO_SMALL                 (RASBASE+3)
 #define ERROR_INVALID_SIZE                     (RASBASE+32)
+#define ERROR_RASMAN_CANNOT_INITIALIZE         (RASBASE+111)
 
 #endif




More information about the wine-cvs mailing list