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