Skip to content

Commit

Permalink
add check to testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
lefessan committed Oct 4, 2023
1 parent 200daad commit d2ae0a0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/testsuite.src/used_binaries.at
Original file line number Diff line number Diff line change
Expand Up @@ -1000,5 +1000,14 @@ AT_CHECK([$COBC -fdiagnostics-plain-output -fdiagnostics-show-caret -Wno-others
> <EOF>
]])


AT_CHECK([$COBC -fdiagnostics-plain-output -fdiagnostics-absolute-paths -Wall prog.cob 2> compiler.output], [1])

AT_CHECK([sed -e "s|$PWD|HOME|" compiler.output], [0],
[HOME/prog.cob:7: error: CRUD.CPY: No such file or directory
HOME/prog.cob:6: warning: numeric value is expected @<:@-Wothers@:>@
HOME/prog.cob:14: warning: ignoring redundant . @<:@-Wothers@:>@
])

AT_CLEANUP

1 comment on commit d2ae0a0

@GitMensch
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's nice. Instead of the @ just use another set of brackets:
[[HOME/prog.cob:7
..,[-Wothers]
]])

Should this be moved to an own test? Not sure.

Please sign in to comment.