JVM_IR: fix ranges' test generator

This commit is contained in:
Anton Bannykh
2018-10-09 18:36:05 +03:00
parent 7fbfad814e
commit 7afb81a7df
3 changed files with 5 additions and 5 deletions
@@ -1,5 +1,3 @@
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
// WITH_RUNTIME
@@ -1,5 +1,3 @@
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
// WITH_RUNTIME
@@ -126,6 +126,8 @@ public class GenerateRangesCodegenTestData {
private static final List<String> IGNORED_FOR_NATIVE_BACKEND = Collections.emptyList();
private static final List<String> WHITELISTED_FOR_JVM_IR_BACKEND = Collections.singletonList("overflowZeroDownToMaxValue.kt");
private static void writeIgnoreBackendDirective(PrintWriter out, String backendName) {
out.printf("// TODO: muted automatically, investigate should it be ran for %s or not%n", backendName);
out.printf("// IGNORE_BACKEND: %s%n%n", backendName);
@@ -142,7 +144,9 @@ public class GenerateRangesCodegenTestData {
}
// Ranges are not supported in JVM_IR yet
writeIgnoreBackendDirective(out, "JVM_IR");
if (!WHITELISTED_FOR_JVM_IR_BACKEND.contains(file.getName())) {
writeIgnoreBackendDirective(out, "JVM_IR");
}
if (IGNORED_FOR_JS_BACKEND.contains(file.getName())) {
writeIgnoreBackendDirective(out, "JS");