1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00

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
This commit is contained in:
Nathan Ridge 2020-03-14 18:08:48 -04:00 committed by Marco Stornelli
parent 0a271afe3d
commit c69bec4979

View file

@ -55,6 +55,12 @@ public class TestBase extends IndexBindingResolutionTestBase {
private static final IParserLogService NULL_LOG = new NullLogService(); private static final IParserLogService NULL_LOG = new NullLogService();
private static final ScannerInfo SCANNER_INFO = new ScannerInfo(getStdMap()); 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() { private static Map<String, String> getStdMap() {
Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
map.put("__SIZEOF_SHORT__", "2"); map.put("__SIZEOF_SHORT__", "2");