Skip to content

Commit

Permalink
portability adjustment of testcase from [r5140], not checking the (sy…
Browse files Browse the repository at this point in the history
…stem-specific) warning text
  • Loading branch information
sf-mensch committed Jul 28, 2023
1 parent 52b350d commit 22311fb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/testsuite.src/run_fundamental.at
Original file line number Diff line number Diff line change
Expand Up @@ -1556,12 +1556,13 @@ some (void)

AT_CHECK([$COMPILE prog.cob], [0], [], [])
AT_CHECK([$COMPILE_MODULE module.c], [0], [], [])
# CHECKME: the waning itself is likely system specific,
# in this case re-adjust to only check for a warning
AT_CHECK([$COBCRUN_DIRECT ./prog], [1], [],
[libcob: prog.cob:6: warning: loading from existing path './module.so' failed; ./module.so: undefined symbol: module
libcob: prog.cob:6: error: entry point 'module' not found
# the warning itself is very system specific, so disable it,
# then run again checking only for the warning
AT_CHECK([COB_DISABLE_WARNINGS=1 $COBCRUN_DIRECT ./prog], [1], [],
[libcob: prog.cob:6: error: entry point 'module' not found
])
AT_CHECK([$COBCRUN_DIRECT ./prog 2> err.log], [1], [], [])
AT_CHECK([$GREP "libcob: prog.cob:6: warning: " err.log], [0], ignore, [])

AT_CLEANUP

Expand Down

0 comments on commit 22311fb

Please sign in to comment.