Paul Vriens : rpcrt4/tests: Skip rest of the tests if we fail.

Alexandre Julliard julliard at winehq.org
Fri Feb 8 06:20:10 CST 2008


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Fri Feb  8 10:51:14 2008 +0100

rpcrt4/tests: Skip rest of the tests if we fail.

---

 dlls/rpcrt4/tests/rpc.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/rpcrt4/tests/rpc.c b/dlls/rpcrt4/tests/rpc.c
index cca1fa1..a95ff50 100644
--- a/dlls/rpcrt4/tests/rpc.c
+++ b/dlls/rpcrt4/tests/rpc.c
@@ -325,6 +325,12 @@ static void test_towers(void)
 
     ret = TowerConstruct(&mapi_if_id, &ndr_syntax, "ncacn_ip_tcp", "135", "10.0.0.1", &tower);
     ok(ret == RPC_S_OK, "TowerConstruct failed with error %ld\n", ret);
+    if (ret == RPC_S_INVALID_RPC_PROTSEQ)
+    {
+        /* Windows Vista fails with this error and crashes if we continue */
+        skip("TowerConstruct failed, we are most likely on Windows Vista\n");
+        return;
+    }
 
     /* first check we have the right amount of data */
     ok(tower->tower_length == sizeof(tower_data_tcp_ip1) ||




More information about the wine-cvs mailing list