diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-03-06 23:34:01 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-03-06 23:34:52 +0100 |
commit | eb91f71e830900f9ce76456f54f97f3988a8906a (patch) | |
tree | 89982c92d33ce4c3abc9d0d266ba4a6ce3515bf4 /test/core/src/lombok/AbstractRunTests.java | |
parent | b7cede3c27e42351e72618c45fd5e960df0e0133 (diff) | |
download | lombok-eb91f71e830900f9ce76456f54f97f3988a8906a.tar.gz lombok-eb91f71e830900f9ce76456f54f97f3988a8906a.tar.bz2 lombok-eb91f71e830900f9ce76456f54f97f3988a8906a.zip |
Added support for restricting tests to certain platforms (ecj, javac)
Diffstat (limited to 'test/core/src/lombok/AbstractRunTests.java')
-rw-r--r-- | test/core/src/lombok/AbstractRunTests.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/src/lombok/AbstractRunTests.java b/test/core/src/lombok/AbstractRunTests.java index 934c74c0..5c5ba898 100644 --- a/test/core/src/lombok/AbstractRunTests.java +++ b/test/core/src/lombok/AbstractRunTests.java @@ -55,7 +55,7 @@ public abstract class AbstractRunTests { this.dumpActualFilesHere = findPlaceToDumpActualFiles(); } - public final FileTester createTester(final DirectoryRunner.TestParams params, final File file, int version) throws IOException { + public final FileTester createTester(final DirectoryRunner.TestParams params, final File file, String platform, int version) throws IOException { ConfigurationKeysLoader.LoaderLoader.loadAllConfigurationKeys(); AssertionError directiveFailure = null; LombokTestSource sourceDirectives = null; @@ -65,6 +65,7 @@ public abstract class AbstractRunTests { if (!sourceDirectives.versionWithinLimit(params.getVersion())) return null; if (!sourceDirectives.versionWithinLimit(getClasspathVersion())) return null; if (!sourceDirectives.versionWithinLimit(version)) return null; + if (!sourceDirectives.runOnPlatform(platform)) return null; } catch (AssertionError ae) { directiveFailure = ae; } |