ieframe/tests: Skip some tests on Windows if WebBrowser is not supported.

Francois Gouget fgouget at
Fri Sep 16 08:25:38 CDT 2011


This fixes this test on the WNT4WSSP6 testbot machine.
It also helps on my NT4 VM but one would not notice because there's no 
ieframes dll so WineTest does not even try to run this test!

 dlls/ieframe/tests/webbrowser.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/ieframe/tests/webbrowser.c b/dlls/ieframe/tests/webbrowser.c
index a36c134..0506be6 100644
--- a/dlls/ieframe/tests/webbrowser.c
+++ b/dlls/ieframe/tests/webbrowser.c
@@ -212,7 +212,10 @@ static HRESULT _create_WebBrowser(unsigned line, IUnknown **unk)
             &IID_IUnknown, (void**)unk);
-    ok_(__FILE__,line)(hres == S_OK, "Creating WebBrowser object failed: %08x\n", hres);
+    if (hres == REGDB_E_CLASSNOTREG)
+        win_skip_(__FILE__,line)("WebBrowser is not supported\n");
+    else
+        ok_(__FILE__,line)(hres == S_OK, "Creating WebBrowser object failed: %08x\n", hres);
     return hres;

More information about the wine-patches mailing list