File: testscript_stdout_stderr_error.txt

package info (click to toggle)
golang-github-rogpeppe-go-internal 1.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,184 kB
  • sloc: makefile: 6
file content (20 lines) | stat: -rw-r--r-- 631 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Verify that stdout and stderr get set event when a user-builtin
# command aborts. Note that we need to assert against stdout
# because our meta testscript command sees only a single log.
unquote scripts/testscript.txt
! testscript -v scripts
cmpenv stdout stdout.golden

-- scripts/testscript.txt --
> printargs hello world
> echoandexit 1 'this is stdout' 'this is stderr'
-- stdout.golden --
>  printargs hello world
[stdout]
["printargs" "hello" "world"]
>  echoandexit 1 'this is stdout' 'this is stderr'
[stdout]
this is stdout
[stderr]
this is stderr
FAIL: ${$}WORK${/}scripts${/}testscript.txt:2: told to exit with code 1