Skip to content

Commit 8b6047d

Browse files
committed
Kotlin: Handle double-interceptions without failing
1 parent 81e71c4 commit 8b6047d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

java/ql/integration-tests/all-platforms/kotlin/kotlin_double_interception/code/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def getManualFlags(invocationTrapName):
2222
return ['-Xplugin=' + extractorJar, '-P', 'plugin:kotlin-extractor:invocationTrapFile=' + trapDir + '/invocations/' + invocationTrapName + '.trap']
2323

2424
# This is both normally intercepted, and it has the extractor flags manually added
25-
runUnsuccessfully([get_cmd('kotlinc'), 'doubleIntercepted.kt'] + getManualFlags('doubleIntercepted'))
25+
runSuccessfully([get_cmd('kotlinc'), 'doubleIntercepted.kt'] + getManualFlags('doubleIntercepted'))
2626
os.environ['CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN'] = 'true'
2727
# We don't see this compilation at all
2828
runSuccessfully([get_cmd('kotlinc'), 'notSeen.kt'])
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
| code/doubleIntercepted.kt:0:0:0:0 | doubleIntercepted |
12
| code/manual.kt:0:0:0:0 | manual |
23
| code/normal.kt:0:0:0:0 | normal |

0 commit comments

Comments
 (0)