vbscript: Skip tests on too old vbscript.

This commit is contained in:
Jacek Caban 2012-09-12 09:35:57 +02:00 committed by Alexandre Julliard
parent 3454bdc07c
commit 32d1bb2bbf
2 changed files with 7 additions and 7 deletions

View File

@ -1740,13 +1740,13 @@ static void run_tests(void)
static BOOL check_vbscript(void)
{
IActiveScript *vbscript;
IActiveScriptParseProcedure2 *vbscript;
HRESULT hres;
hres = CoCreateInstance(&CLSID_VBScript, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER,
&IID_IActiveScript, (void**)&vbscript);
&IID_IActiveScriptParseProcedure2, (void**)&vbscript);
if(SUCCEEDED(hres))
IActiveScript_Release(vbscript);
IActiveScriptParseProcedure2_Release(vbscript);
return hres == S_OK;
}

View File

@ -774,13 +774,13 @@ static void test_vbscript_initializing(void)
static BOOL check_vbscript(void)
{
IActiveScript *vbscript;
IActiveScriptParseProcedure2 *vbscript;
HRESULT hres;
hres = CoCreateInstance(&CLSID_VBScript, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER,
&IID_IActiveScript, (void**)&vbscript);
&IID_IActiveScriptParseProcedure2, (void**)&vbscript);
if(SUCCEEDED(hres))
IActiveScript_Release(vbscript);
IActiveScriptParseProcedure2_Release(vbscript);
return hres == S_OK;
}
@ -797,7 +797,7 @@ START_TEST(vbscript)
test_vbscript_initializing();
test_scriptdisp();
}else {
win_skip("VBScript engine not available\n");
win_skip("VBScript engine not available or too old\n");
}
CoUninitialize();