diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-16 00:39:42 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-16 00:39:42 +0900 |
| commit | 891316d9240fc5cf451ad88f92e82f82b1751ab8 (patch) | |
| tree | 55d4d05960c593d40eca18746b04016168d52a1b /helper/stub.go | |
| parent | 9f5dad1998d82346e2ead345e11791ed114e32e0 (diff) | |
helper/stub: copy args to stderr
Some helpers are implemented via go test itself in tests, and as a result stdout gets clobbered.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/stub.go')
| -rw-r--r-- | helper/stub.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/stub.go b/helper/stub.go index f64263cb..988004c2 100644 --- a/helper/stub.go +++ b/helper/stub.go @@ -74,7 +74,7 @@ func flagRestoreFiles(offset int, ap, sp string) (argsFile, statFile *os.File) { func genericStub(argsFile, statFile *os.File) { if argsFile != nil { // this output is checked by parent - if _, err := io.Copy(os.Stdout, argsFile); err != nil { + if _, err := io.Copy(os.Stderr, argsFile); err != nil { panic("cannot read args: " + err.Error()) } } |
