diff options
Diffstat (limited to 'xdelta3/go/src/regtest.go')
-rw-r--r-- | xdelta3/go/src/regtest.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/xdelta3/go/src/regtest.go b/xdelta3/go/src/regtest.go index f8045c0..6497166 100644 --- a/xdelta3/go/src/regtest.go +++ b/xdelta3/go/src/regtest.go | |||
@@ -56,15 +56,12 @@ func smokeTest(r *xdelta.Runner, t *xdelta.TestGroup, p *xdelta.Program) { | |||
56 | } | 56 | } |
57 | 57 | ||
58 | func offsetTest(r *xdelta.Runner, t *xdelta.TestGroup, p *xdelta.Program, offset, bufsize, length int64) { | 58 | func offsetTest(r *xdelta.Runner, t *xdelta.TestGroup, p *xdelta.Program, offset, bufsize, length int64) { |
59 | fmt.Println("Hi") | ||
60 | t.Add(1) | 59 | t.Add(1) |
61 | eargs := []string{"-e", "-1", "-n", fmt.Sprint("-B", bufsize), "-vv", fmt.Sprint("-W", winsize)} | 60 | eargs := []string{"-e", "-1", "-N", fmt.Sprint("-B", bufsize), "-vv", fmt.Sprint("-W", winsize)} |
62 | enc, err := r.Exec(p, true, eargs) | 61 | enc, err := r.Exec(p, true, eargs) |
63 | fmt.Println("Hi2") | ||
64 | if err != nil { | 62 | if err != nil { |
65 | t.Panic(err) | 63 | t.Panic(err) |
66 | } | 64 | } |
67 | fmt.Println("Hi3") | ||
68 | dargs := []string{"-d", fmt.Sprint("-B", bufsize), "-vv", fmt.Sprint("-W", winsize)} | 65 | dargs := []string{"-d", fmt.Sprint("-B", bufsize), "-vv", fmt.Sprint("-W", winsize)} |
69 | dec, err := r.Exec(p, true, dargs) | 66 | dec, err := r.Exec(p, true, dargs) |
70 | if err != nil { | 67 | if err != nil { |
@@ -76,11 +73,8 @@ func offsetTest(r *xdelta.Runner, t *xdelta.TestGroup, p *xdelta.Program, offset | |||
76 | t.Empty(enc.Stderr, "encode") | 73 | t.Empty(enc.Stderr, "encode") |
77 | t.Empty(dec.Stderr, "decode") | 74 | t.Empty(dec.Stderr, "decode") |
78 | 75 | ||
79 | fmt.Println("Hi4") | ||
80 | t.CopyStreams(enc.Stdout, dec.Stdin) | 76 | t.CopyStreams(enc.Stdout, dec.Stdin) |
81 | fmt.Println("Hi5") | ||
82 | t.CompareStreams(dec.Stdout, read, length) | 77 | t.CompareStreams(dec.Stdout, read, length) |
83 | fmt.Println("Hi6") | ||
84 | 78 | ||
85 | // TODO: seems possible to use one WriteRstreams call to generate | 79 | // TODO: seems possible to use one WriteRstreams call to generate |
86 | // the source and target for both encoder and decoder. Why not? | 80 | // the source and target for both encoder and decoder. Why not? |