diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2015-12-28 12:58:10 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2015-12-28 12:58:10 +0100 |
| commit | 4eda9b07e5f25565333fdd8eed4e33850bd0f828 (patch) | |
| tree | 45d2ec43dbc07109ea665432e68bab98f0b2a15c /prog/mutation_test.go | |
| parent | 9f9ae3fcc3efc74cbcb805b44575b5c140fa97ee (diff) | |
prog: don't serialize paddings
Paddings in serialized programs are unnecessary and confusing.
Instead restore them implicitly.
Also use [,,,,] for arrays.
Diffstat (limited to 'prog/mutation_test.go')
| -rw-r--r-- | prog/mutation_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/mutation_test.go b/prog/mutation_test.go index 37db7cda2..53acba02d 100644 --- a/prog/mutation_test.go +++ b/prog/mutation_test.go @@ -212,7 +212,7 @@ func TestMinimize(t *testing.T) { // Remove a call and replace results. { "mmap(&(0x7f0000000000)=nil, (0x1000), 0x3, 0x32, 0xffffffffffffffff, 0x0)\n" + - "pipe2(&(0x7f0000000000)={[r0=]0x0, 0x0}, 0x0)\n" + + "pipe2(&(0x7f0000000000)={<r0=>0x0, 0x0}, 0x0)\n" + "write(r0, &(0x7f0000000000)=\"1155\", 0x2)\n" + "sched_yield()\n", 3, @@ -259,7 +259,7 @@ func TestMinimize(t *testing.T) { for ti, test := range tests { p, err := Deserialize([]byte(test.orig)) if err != nil { - t.Fatalf("failed to deserialize original program: %v", err) + t.Fatalf("failed to deserialize original program #%v: %v", ti, err) } p1, ci := Minimize(p, test.callIndex, test.pred) res := p1.Serialize() |
