Skip to content

Commit a68b61f

Browse files
committed
Kotlin: adjust expected test results after fixing compiler argument interception
1 parent 6eccb5e commit a68b61f

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
| 0 | -Xallow-no-source-files |
2+
| 1 | -classpath |
3+
| 2 | <PATH> |
4+
| 3 | -d |
5+
| 4 | app/build/classes/kotlin/main |
6+
| 5 | -jdk-home |
7+
| 6 | <PATH> |
8+
| 7 | -module-name |
9+
| 8 | app |
10+
| 9 | -no-reflect |
11+
| 10 | -no-stdlib |
12+
| 11 | <PLUGINS> |
13+
| 12 | app/src/main/kotlin/testProject/App.kt |
14+
| 13 | -jvm-target |
15+
| 14 | 1.8 |
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
import java
22

3+
private string getArgument(Compilation c, int i) {
4+
exists(string arg | arg = c.getArgument(i) |
5+
if exists(arg.indexOf("-Xplugin="))
6+
then result = "<PLUGINS>"
7+
else
8+
if exists(string arg0 | arg0 = c.getArgument(i - 1) | arg0 = ["-classpath", "-jdk-home"])
9+
then result = "<PATH>"
10+
else result = arg
11+
)
12+
}
13+
314
from Compilation c, int i
4-
select i, c.getArgument(i)
15+
select i, getArgument(c, i)

0 commit comments

Comments
 (0)