From 8a67aa70b05cbdf2dd5702f4c3ba302f2feba0cf Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 31 Dec 2017 15:14:40 +0100 Subject: prog: add test for len mutation Test we actually can get an unnatural len value. --- prog/mutation_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'prog') 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 @@ -136,6 +136,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 { -- cgit mrf-deployment