# HG changeset patch # User Ed Swartz # Date 1259963588 21600 # Node ID ced8425c3871234c465497a7340bf342dc798e3b # Parent f96e62c11eac2a8e2e8e52c0f471563d215b7674 Only test at most 8 build contexts from an SDK. diff -r f96e62c11eac -r ced8425c3871 project/com.nokia.carbide.cpp.epoc.engine.tests/src/com/nokia/carbide/cpp/epoc/engine/tests/TestsPlugin.java --- a/project/com.nokia.carbide.cpp.epoc.engine.tests/src/com/nokia/carbide/cpp/epoc/engine/tests/TestsPlugin.java Fri Dec 04 15:36:34 2009 -0600 +++ b/project/com.nokia.carbide.cpp.epoc.engine.tests/src/com/nokia/carbide/cpp/epoc/engine/tests/TestsPlugin.java Fri Dec 04 15:53:08 2009 -0600 @@ -63,17 +63,18 @@ } /** - * Get build configurations for the first non-empty SDK we find - * @return + * Get some build configurations for the first non-empty SDK we find. + * @return a list of contexts, no more than 8. */ public static List getUsableBuildConfigs() { for (ISymbianSDK sdk : SDKCorePlugin.getSDKManager().getSDKList()) { List contexts = sdk.getUnfilteredBuildConfigurations(); - if (contexts.size() > 0) - return contexts; + if (contexts.size() > 0) { + return contexts.subList(0, Math.min(contexts.size(), 8)); + } } TestCase.fail("No installed SDKs provide build configurations"); - return Collections.EMPTY_LIST; + return Collections.emptyList(); } }