Browse Source

print stderr

master
Juni Kim 2 years ago
parent
commit
660c471a6d
  1. 5
      runtests.go

5
runtests.go

@ -36,12 +36,13 @@ func runOneTest(dir string, test *CPTest) {
defer inpipe.Close();
fmt.Fprintln(inpipe, string(*test.Input));
out,err := cmd.Output();
out,err := cmd.CombinedOutput();
fmt.Println("OUTPUT:")
if err != nil {
fmt.Println(err);
fmt.Println(string(out));
return
}
fmt.Println("OUTPUT:")
fmt.Println(string(out));
if test.Output != nil {

Loading…
Cancel
Save