diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-05-01 11:56:50 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-05-01 13:31:17 +0200 |
| commit | 3f4dbb2f6fff9479d6c250e224bc3cb7f5cd66ed (patch) | |
| tree | 8f132d4ec9946ac23fce43f460f6442e54d018aa /prog/test_util.go | |
| parent | 986fa4971cf27c597fa4baa23e88ce340187c2d0 (diff) | |
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.
Diffstat (limited to 'prog/test_util.go')
| -rw-r--r-- | prog/test_util.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
