Module: wine Branch: master Commit: 444bc3556d57ac5b456e0ac7f245c08ee4939443 URL: http://source.winehq.org/git/wine.git/?a=commit;h=444bc3556d57ac5b456e0ac7f2...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Sat Apr 11 18:28:37 2015 +0300
oleaut32/tests: Skip cache tests if it's disabled.
---
dlls/oleaut32/tests/vartype.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c index 774aee2..4dd77a0 100644 --- a/dlls/oleaut32/tests/vartype.c +++ b/dlls/oleaut32/tests/vartype.c @@ -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);