Use maximum 8 build configs for tests
authorEd Swartz <ed.swartz@nokia.com>
Wed, 09 Dec 2009 09:01:42 -0600
changeset 659 19b66faa8ff1
parent 658 fb206b3e6dda
child 660 749482434cfa
Use maximum 8 build configs for tests
project/com.nokia.carbide.cpp.project.core.tests/src/com/nokia/carbide/cpp/project/core/tests/TestsPlugin.java
--- a/project/com.nokia.carbide.cpp.project.core.tests/src/com/nokia/carbide/cpp/project/core/tests/TestsPlugin.java	Wed Dec 09 09:01:15 2009 -0600
+++ b/project/com.nokia.carbide.cpp.project.core.tests/src/com/nokia/carbide/cpp/project/core/tests/TestsPlugin.java	Wed Dec 09 09:01:42 2009 -0600
@@ -78,10 +78,10 @@
 		for (ISymbianSDK sdk : SDKCorePlugin.getSDKManager().getSDKList()) {
 			List<ISymbianBuildContext> contexts = sdk.getUnfilteredBuildConfigurations();
 			if (contexts.size() > 0)
-				return contexts;
+				return contexts.subList(0, Math.min(contexts.size(), 8));
 		}
 		TestCase.fail("No installed SDKs provide build configurations");
-		return Collections.EMPTY_LIST;
+		return Collections.emptyList();
 	}