From c69bec497922b992af708a5be25f95dabba35ef7 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Sat, 14 Mar 2020 18:08:48 -0400 Subject: [PATCH] Bug 561124 - Pick a default test strategy in constexpr.TestBase This allows constexpr evaluation test cases to be run individually (using the default strategy). Change-Id: Ib196f0c625580ab50b0abf79d57b54175b174f5f --- .../core/parser/tests/ast2/cxx14/constexpr/TestBase.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx14/constexpr/TestBase.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx14/constexpr/TestBase.java index 1c473cfbfda..2a2b7504632 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx14/constexpr/TestBase.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx14/constexpr/TestBase.java @@ -55,6 +55,12 @@ public class TestBase extends IndexBindingResolutionTestBase { private static final IParserLogService NULL_LOG = new NullLogService(); private static final ScannerInfo SCANNER_INFO = new ScannerInfo(getStdMap()); + public TestBase() { + // Pick a default startegy, just so that we can run test cases individually + // for debugging purposes. + setStrategy(new NonIndexingTestStrategy()); + } + private static Map getStdMap() { Map map = new HashMap<>(); map.put("__SIZEOF_SHORT__", "2");