Jacek Caban : vbscript: Skip tests if we can't register ActiveX object.

Alexandre Julliard julliard at winehq.org
Tue Feb 18 14:11:03 CST 2014


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Feb 18 11:32:53 2014 +0100

vbscript: Skip tests if we can't register ActiveX object.

---

 dlls/vbscript/tests/createobj.c |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/dlls/vbscript/tests/createobj.c b/dlls/vbscript/tests/createobj.c
index 729fa3e..002f12f 100644
--- a/dlls/vbscript/tests/createobj.c
+++ b/dlls/vbscript/tests/createobj.c
@@ -1092,12 +1092,13 @@ START_TEST(createobj)
     CoInitialize(NULL);
 
     if(check_vbscript()) {
-        register_activex();
-
-        test_CreateObject();
-        test_GetObject();
-
-        init_registry(FALSE);
+        if(register_activex()) {
+            test_CreateObject();
+            test_GetObject();
+            init_registry(FALSE);
+        }else {
+            skip("Could not register ActiveX object.\n");
+        }
     }else {
         win_skip("Broken engine, probably too old\n");
     }




More information about the wine-cvs mailing list