| 1 |
# Verify that stdout and stderr get set event when a user-builtin |
| 2 |
# command aborts. Note that we need to assert against stdout |
| 3 |
# because our meta testscript command sees only a single log. |
| 4 |
unquote scripts/testscript.txt |
| 5 |
! testscript -v scripts |
| 6 |
cmpenv stdout stdout.golden |
| 7 |
|
| 8 |
-- scripts/testscript.txt -- |
| 9 |
> printargs hello world |
| 10 |
> echoandexit 1 'this is stdout' 'this is stderr' |
| 11 |
-- stdout.golden -- |
| 12 |
** RUN testscript ** |
| 13 |
> printargs hello world |
| 14 |
[stdout] |
| 15 |
["printargs" "hello" "world"] |
| 16 |
> echoandexit 1 'this is stdout' 'this is stderr' |
| 17 |
[stdout] |
| 18 |
this is stdout |
| 19 |
[stderr] |
| 20 |
this is stderr |
| 21 |
FAIL: ${$}WORK${/}scripts${/}testscript.txt:2: told to exit with code 1 |