mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-24 03:49:45 +00:00
prog: test that Deserialize does not return nil prog
That happened when parser did not check scanning errors and a program contains too long line.
This commit is contained in:
parent
4ca49b389a
commit
b5aa8b4506
@ -37,6 +37,9 @@ func TestSerialize(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("failed to deserialize program: %v\n%s", err, data)
|
||||
}
|
||||
if p1 == nil {
|
||||
t.Fatalf("deserialized nil program:\n%s", data)
|
||||
}
|
||||
data1 := p1.Serialize()
|
||||
if len(p.Calls) != len(p1.Calls) {
|
||||
t.Fatalf("different number of calls")
|
||||
|
Loading…
Reference in New Issue
Block a user