Add read_file to testlib.c.

This commit is contained in:
Nigel Tao committed 2017-06-03 18:33:22 +10:00
1 parent 6283389bc8
commit f9de8950e4
3 files changed
+58 -7

No files matched your search

+1
View File
@@ -86,6 +86,7 @@ func do(dirname string, filename string) (failed bool, err error) {
outCmd := exec.Command(out)
outCmd.Stdout = os.Stdout
outCmd.Stderr = os.Stderr
outCmd.Dir = dirname
if err := outCmd.Run(); err == nil {
// No-op.
} else if _, ok := err.(*exec.ExitError); ok {