Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
lefessan committed Mar 15, 2024
1 parent 6901958 commit 136592b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/testsuite.src/used_binaries.at
Original file line number Diff line number Diff line change
Expand Up @@ -1063,15 +1063,16 @@ AT_CHECK([$COBC -fdiagnostics-plain-output -fdiagnostics-show-caret -Wno-others
]])

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

AT_CHECK([echo "s|$PWD|HOME| s|$(pwd)|HOME|" > pwd.output])
AT_CAPTURE_FILE([pwd.output])
AT_CHECK([echo "$PWD/prog.cob:7: error: CRUD.CPY: No such file or directory" > expected.output])
AT_CHECK([echo "$PWD/prog.cob:6: warning: numeric value is expected" >> expected.output])
AT_CHECK([echo "$PWD/prog.cob:14: warning: ignoring redundant ." >> expected.output])
AT_CAPTURE_FILE([expected.output])

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
HOME/prog.cob:14: warning: ignoring redundant .
])
AT_CHECK([cat compiler.output | tr '[:upper:]' '[:lower:]' | tr -d ':/\\' > compiler.output2])
AT_CHECK([cat expected.output | tr '[:upper:]' '[:lower:]' | tr -d ':/\\' > expected.output2])
AT_CHECK([diff compiler.output2 expected.output2])

AT_CLEANUP

Expand Down

0 comments on commit 136592b

Please sign in to comment.