From 21ec9031bf1703fd8f82a343f31f2964b9567428 Mon Sep 17 00:00:00 2001 From: Joshua MacDonald Date: Thu, 26 Nov 2015 22:53:32 -0800 Subject: Wait for I/O to finish before waiting for subprocesses to exit --- xdelta3/go/src/regtest.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'xdelta3/go/src/regtest.go') 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) { if decoded != target { g.Panic(errors.New("It's not working!!!")) } - t.Wait(g) + t.Wait(g, enc, dec) fmt.Println("Smoketest pass") } @@ -80,8 +80,7 @@ func offsetTest(r *xdelta.Runner, p *xdelta.Program, bufsize, offset, length int xdelta.WriteRstreams(t, "encode", seed, offset, length, enc.Srcin, enc.Stdin) xdelta.WriteRstreams(t, "decode", seed, offset, length, dec.Srcin, write) - - t.Wait(g) + t.Wait(g, enc, dec) } func main() { -- cgit v1.2.3