Skip to content

Commit 7e52f9f

Browse files
committed
Kotlin: test
1 parent 969ab78 commit 7e52f9f

6 files changed

Lines changed: 14 additions & 14 deletions

File tree

  • java/ql/integration-tests/kotlin/all-platforms
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import pathlib
22

33

4-
def test(codeql, java_full, kotlinc_2_3_20):
4+
def test(codeql, java_full):
55
java_srcs = " ".join([str(s) for s in pathlib.Path().glob("*.java")])
66
codeql.database.create(
77
command=[
88
f"javac {java_srcs} -d build",
9-
"kotlinc -language-version 1.9 user.kt -cp build",
9+
"kotlinc user.kt -cp build",
1010
]
1111
)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import commands
22

33

4-
def test(codeql, java_full, kotlinc_2_3_20):
5-
commands.run("kotlinc -language-version 1.9 test.kt -d lib")
6-
codeql.database.create(command="kotlinc -language-version 1.9 user.kt -cp lib")
4+
def test(codeql, java_full):
5+
commands.run("kotlinc test.kt -d lib")
6+
codeql.database.create(command="kotlinc user.kt -cp lib")
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
def test(codeql, java_full, kotlinc_2_3_20):
2-
codeql.database.create(command=f"kotlinc -J-Xmx2G -language-version 1.9 SomeClass.kt")
1+
def test(codeql, java_full):
2+
codeql.database.create(command=f"kotlinc -J-Xmx2G SomeClass.kt")
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import commands
22

33

4-
def test(codeql, java_full, kotlinc_2_3_20):
5-
commands.run("kotlinc -language-version 1.9 A.kt")
6-
codeql.database.create(command="kotlinc -cp . -language-version 1.9 B.kt C.kt")
4+
def test(codeql, java_full):
5+
commands.run("kotlinc A.kt")
6+
codeql.database.create(command="kotlinc -cp . B.kt C.kt")
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import commands
22

33

4-
def test(codeql, java_full, kotlinc_2_3_20):
4+
def test(codeql, java_full):
55
commands.run(["javac", "Test.java", "-d", "bin"])
6-
codeql.database.create(command="kotlinc -language-version 1.9 user.kt -cp bin")
6+
codeql.database.create(command="kotlinc user.kt -cp bin")
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import commands
22

33

4-
def test(codeql, java_full, kotlinc_2_3_20):
4+
def test(codeql, java_full):
55
# Compile the JavaDefns2 copy outside tracing, to make sure the Kotlin view of it matches the Java view seen by the traced javac compilation of JavaDefns.java below.
66
commands.run(["javac", "JavaDefns2.java"])
77
codeql.database.create(
88
command=[
99
"kotlinc kotlindefns.kt",
1010
"javac JavaUser.java JavaDefns.java -cp .",
11-
"kotlinc -language-version 1.9 -cp . kotlinuser.kt",
11+
"kotlinc -cp . kotlinuser.kt",
1212
]
1313
)

0 commit comments

Comments
 (0)