aboutsummaryrefslogtreecommitdiffstats
path: root/prog/mutation_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-12-31 15:14:40 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-01-06 17:40:43 +0100
commit8a67aa70b05cbdf2dd5702f4c3ba302f2feba0cf (patch)
treeadf889fef0b095a74c2bc77b7429dcf5b556b477 /prog/mutation_test.go
parent8e6b9eeb2711705b01229614891c4150c7df261a (diff)
prog: add test for len mutation
Test we actually can get an unnatural len value.
Diffstat (limited to 'prog/mutation_test.go')
-rw-r--r--prog/mutation_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/prog/mutation_test.go b/prog/mutation_test.go
index 3b254bf48..21f0261dd 100644
--- a/prog/mutation_test.go
+++ b/prog/mutation_test.go
@@ -137,6 +137,12 @@ mutate3(&(0x7f0000000000)=[0x1, 0x1], 0x2)
mmap(&(0x7f0000000000/0x1000)=nil, 0x1000)
mutate3(&(0x7f0000000000)=[0x1, 0x1, 0x1], 0x3)
`},
+ // Mutate size from it's natural value.
+ {`
+mutate7(&(0x7f0000000000)='123', 0x3)
+`, `
+mutate7(&(0x7f0000000000)='123', 0x2)
+`},
}
for ti, test := range tests {
test := test