Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorNathan Ridge2020-03-14 22:08:48 +0000
committerMarco Stornelli2020-03-20 19:28:06 +0000
commitc69bec497922b992af708a5be25f95dabba35ef7 (patch)
tree728e98d00b6febea9c79ca34eecd11767077baf4 /core
parent0a271afe3d26b6b75ee332366bbf464dc0c72d4d (diff)
downloadorg.eclipse.cdt-c69bec497922b992af708a5be25f95dabba35ef7.tar.gz
org.eclipse.cdt-c69bec497922b992af708a5be25f95dabba35ef7.tar.xz
org.eclipse.cdt-c69bec497922b992af708a5be25f95dabba35ef7.zip
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
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/cxx14/constexpr/TestBase.java6
1 files changed, 6 insertions, 0 deletions
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<String, String> getStdMap() {
Map<String, String> map = new HashMap<>();
map.put("__SIZEOF_SHORT__", "2");

Back to the top