From a6dd4cf98cc2a2d521a90849e7e0908f4da425d0 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 3 Oct 2012 09:12:20 +0200 Subject: [PATCH] Fix performance test on Windows (yes it sucks) --- .../intellij/openapi/util/text/StringUtilPerformanceTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/util/text/StringUtilPerformanceTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/util/text/StringUtilPerformanceTest.java index 513cb9e82a9b..049f29d571b4 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/util/text/StringUtilPerformanceTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/util/text/StringUtilPerformanceTest.java @@ -15,6 +15,7 @@ */ package com.intellij.openapi.util.text; +import com.intellij.openapi.util.SystemInfo; import com.intellij.testFramework.PlatformTestUtil; import com.intellij.util.ThrowableRunnable; import org.junit.Test; @@ -30,7 +31,7 @@ public class StringUtilPerformanceTest { public void containsAnyChar() throws Exception { assertTrue(StringUtil.containsAnyChar(TEST_STRING, Integer.toString(new Random().nextInt()))); - PlatformTestUtil.startPerformanceTest("StringUtil.containsAnyChar()", 200, new ThrowableRunnable() { + PlatformTestUtil.startPerformanceTest("StringUtil.containsAnyChar()", SystemInfo.isWindows ? 500 : 200, new ThrowableRunnable() { @Override public void run() throws Throwable { for (int i = 0; i < 1000000; i++) {