[Native][Tests] Don't run tests that require diagnostic options

This commit is contained in:
Pavel Punegov
2021-09-01 21:02:26 +03:00
committed by Space
parent 50bd5da639
commit 7e4e0ffdaa
@@ -466,6 +466,10 @@ fun runTest() {
return false
}
}
def diagnostics = findLinesWithPrefixesRemoved(text, '// !DIAGNOSTICS')
if (!diagnostics.empty) {
return false
}
def version = findLinesWithPrefixesRemoved(text, '// LANGUAGE_VERSION: ')
if (version.size() != 0 && (!version.contains("1.3") || !version.contains("1.4"))) {