Do not run tests for -ReleaseCoroutines

This commit is contained in:
Pavel Punegov
2018-09-26 20:11:49 +03:00
committed by Pavel Punegov
parent 2b1c607ef2
commit fe28888bfd
@@ -858,12 +858,13 @@ fun runTest() {
def text = project.file(fileName).text def text = project.file(fileName).text
def languageSettings = findLinesWithPrefixesRemoved(text, '// !LANGUAGE: ') def languageSettings = findLinesWithPrefixesRemoved(text, '// !LANGUAGE: ')
if (languageSettings.contains('-ProperIeee754Comparisons')) { if (!languageSettings.empty) {
// K/N supports only proper IEEE754 comparisons def settings = languageSettings.first()
return false if (settings.contains('-ProperIeee754Comparisons') || // K/N supports only proper IEEE754 comparisons
} settings.contains('+NewInference') || // New inference is not implemented
if (languageSettings.contains('+NewInference')) { settings.contains('-ReleaseCoroutines')) { // only release coroutines
return false return false
}
} }
def version = findLinesWithPrefixesRemoved(text, '// LANGUAGE_VERSION: ') def version = findLinesWithPrefixesRemoved(text, '// LANGUAGE_VERSION: ')