From 4eda9b07e5f25565333fdd8eed4e33850bd0f828 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 28 Dec 2015 12:58:10 +0100 Subject: prog: don't serialize paddings Paddings in serialized programs are unnecessary and confusing. Instead restore them implicitly. Also use [,,,,] for arrays. --- prog/mutation_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prog/mutation_test.go') 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)={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() -- cgit mrf-deployment