diff options
author | Joshua MacDonald <josh.macdonald@gmail.com> | 2015-11-26 22:53:32 -0800 |
---|---|---|
committer | Joshua MacDonald <josh.macdonald@gmail.com> | 2015-11-26 22:53:32 -0800 |
commit | 21ec9031bf1703fd8f82a343f31f2964b9567428 (patch) | |
tree | 70bbf6f24dce0f35e32d69296b0852b66485c766 /xdelta3/go/src/regtest.go | |
parent | b24969720ac9c92f3d7327250b3ee8e86acc6def (diff) |
Wait for I/O to finish before waiting for subprocesses to exit
Diffstat (limited to 'xdelta3/go/src/regtest.go')
-rw-r--r-- | xdelta3/go/src/regtest.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xdelta3/go/src/regtest.go b/xdelta3/go/src/regtest.go index 385c936..76d253c 100644 --- a/xdelta3/go/src/regtest.go +++ b/xdelta3/go/src/regtest.go | |||
@@ -52,7 +52,7 @@ func smokeTest(r *xdelta.Runner, p *xdelta.Program) { | |||
52 | if decoded != target { | 52 | if decoded != target { |
53 | g.Panic(errors.New("It's not working!!!")) | 53 | g.Panic(errors.New("It's not working!!!")) |
54 | } | 54 | } |
55 | t.Wait(g) | 55 | t.Wait(g, enc, dec) |
56 | fmt.Println("Smoketest pass") | 56 | fmt.Println("Smoketest pass") |
57 | } | 57 | } |
58 | 58 | ||
@@ -80,8 +80,7 @@ func offsetTest(r *xdelta.Runner, p *xdelta.Program, bufsize, offset, length int | |||
80 | 80 | ||
81 | xdelta.WriteRstreams(t, "encode", seed, offset, length, enc.Srcin, enc.Stdin) | 81 | xdelta.WriteRstreams(t, "encode", seed, offset, length, enc.Srcin, enc.Stdin) |
82 | xdelta.WriteRstreams(t, "decode", seed, offset, length, dec.Srcin, write) | 82 | xdelta.WriteRstreams(t, "decode", seed, offset, length, dec.Srcin, write) |
83 | 83 | t.Wait(g, enc, dec) | |
84 | t.Wait(g) | ||
85 | } | 84 | } |
86 | 85 | ||
87 | func main() { | 86 | func main() { |