Skip to content

Commit

Permalink
Added test for invalid name
Browse files Browse the repository at this point in the history
  • Loading branch information
xevor11 committed Sep 9, 2024
1 parent 0c1eb53 commit bb586f4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/testsuite.src/run_java.at
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,19 @@ AT_CHECK([$COMPILE prog.cob], [0], [], [])
# TODO: should fail!
AT_CHECK([$COBCRUN_DIRECT ./prog], [0], [])
AT_CLEANUP

AT_SETUP([CALL Java with malformed method name])
AT_KEYWORDS([extensions jni malformed])

AT_SKIP_IF([test "$COB_HAS_JNI" = "no"])

AT_DATA([prog.cob], [
IDENTIFICATION DIVISION.
PROGRAM-ID. prog.
PROCEDURE DIVISION.
CALL "JavaInvalidName"
STOP RUN.
])

AT_CHECK([$COMPILE prog.cob], [1], [], [stderr])
AT_CLEANUP

0 comments on commit bb586f4

Please sign in to comment.