aboutsummaryrefslogtreecommitdiffstats
path: root/prog/mutation_test.go
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2016-10-11 20:54:28 +0200
committerAndrey Konovalov <andreyknvl@google.com>2016-10-11 20:54:28 +0200
commit55cd443931cb0094c37937df2818ae07e248181e (patch)
tree60b6a71d541013f944b2032c72d9c9e7c3e58d15 /prog/mutation_test.go
parentcb8fcaf84c7386b129ef54d9ee5fd36b6c56bf0d (diff)
Fix validate, detect nil non-optional pointer
Diffstat (limited to 'prog/mutation_test.go')
-rw-r--r--prog/mutation_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/mutation_test.go b/prog/mutation_test.go
index 3ff30d1e9..d81ddb33b 100644
--- a/prog/mutation_test.go
+++ b/prog/mutation_test.go
@@ -117,11 +117,11 @@ func TestMutateTable(t *testing.T) {
// Extend an array.
{
"r0 = open(&(0x7f0000001000)=\"2e2f66696c653000\", 0x22c0, 0x1)\n" +
- "readv(r0, &(0x7f0000000000)=[{&(0x7f0000001000)=nil, 0x1}, {&(0x7f0000002000)=nil, 0x2}], 0x2)\n",
+ "readv(r0, &(0x7f0000000000)=[{&(0x7f0000001000)=\"00\", 0x1}, {&(0x7f0000002000)=\"00\", 0x2}], 0x2)\n",
"mmap(&(0x7f0000000000/0x1000)=nil, (0x1000), 0x3, 0x32, 0xffffffffffffffff, 0x0)\n" +
"r0 = open(&(0x7f0000001000)=\"2e2f66696c653000\", 0x22c0, 0x1)\n" +
- "readv(r0, &(0x7f0000000000)=[{&(0x7f0000001000)=nil, 0x1}, {&(0x7f0000002000)=nil, 0x2}, {&(0x7f0000000000)=nil, 0x3}], 0x3)\n",
+ "readv(r0, &(0x7f0000000000)=[{&(0x7f0000001000)=\"00\", 0x1}, {&(0x7f0000002000)=\"00\", 0x2}, {&(0x7f0000000000)=\"00\", 0x3}], 0x3)\n",
},
}
rs, _ := initTest(t)