Kotlin: adjust expected test results after fixing compiler argument interception

This commit is contained in:
Tamas Vajk
2022-09-13 15:03:54 +02:00
parent 6eccb5e99c
commit a68b61f50a
2 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
| 0 | -Xallow-no-source-files |
| 1 | -classpath |
| 2 | <PATH> |
| 3 | -d |
| 4 | app/build/classes/kotlin/main |
| 5 | -jdk-home |
| 6 | <PATH> |
| 7 | -module-name |
| 8 | app |
| 9 | -no-reflect |
| 10 | -no-stdlib |
| 11 | <PLUGINS> |
| 12 | app/src/main/kotlin/testProject/App.kt |
| 13 | -jvm-target |
| 14 | 1.8 |

View File

@@ -1,4 +1,15 @@
import java
private string getArgument(Compilation c, int i) {
exists(string arg | arg = c.getArgument(i) |
if exists(arg.indexOf("-Xplugin="))
then result = "<PLUGINS>"
else
if exists(string arg0 | arg0 = c.getArgument(i - 1) | arg0 = ["-classpath", "-jdk-home"])
then result = "<PATH>"
else result = arg
)
}
from Compilation c, int i
select i, c.getArgument(i)
select i, getArgument(c, i)