oleaut32/tests: Skip cache tests if it's disabled.

This commit is contained in:
Nikolay Sivov 2015-04-11 18:28:37 +03:00 committed by Alexandre Julliard
parent d6180c05b5
commit 444bc3556d

View File

@ -6318,6 +6318,11 @@ static void test_bstr_cache(void)
static const WCHAR testW[] = {'t','e','s','t',0};
if (GetEnvironmentVariableA("OANOCACHE", NULL, 0)) {
skip("BSTR cache is disabled, some tests will be skipped.\n");
return;
}
str = SysAllocString(testW);
/* This should put the string into cache */
SysFreeString(str);