From 3f4dbb2f6fff9479d6c250e224bc3cb7f5cd66ed Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 1 May 2020 11:56:50 +0200 Subject: prog: fix size assignment for squashed args We can have a situation where len target points into a squashed argument. In suca case we don't have the target argument. In such case we simply leave size argument as is. It can't happen during generation, only during mutation and mutation can set size to random values, so it should be fine. This is a lateny bug, we just never had such case before. --- prog/test_util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prog/test_util.go') diff --git a/prog/test_util.go b/prog/test_util.go index 7f391792c..07f24141a 100644 --- a/prog/test_util.go +++ b/prog/test_util.go @@ -34,10 +34,10 @@ func TestDeserializeHelper(t *testing.T, OS, arch string, transform func(*Target test.StrictErr = test.Err } if test.Err != "" && test.Out != "" { - t.Fatalf("both Err and Out are set") + t.Errorf("both Err and Out are set") } if test.In == test.Out { - t.Fatalf("In and Out are equal, remove Out in such case\n%v", test.In) + t.Errorf("In and Out are equal, remove Out in such case\n%v", test.In) } if test.Out == "" { test.Out = test.In -- cgit mrf-deployment