From c3772ff106ecd84b205a4c5796122d45392d28f4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 11 Oct 2018 13:37:44 +0200 Subject: pkg/email, pkg/vcs: test that OpenBSD-style commits are handled OpenBSD does not use "first line is title" convention, so test that this is parsed properly. Also test that multi-line fix/dup commands are properly parsed. --- pkg/email/parser_test.go | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'pkg/email/parser_test.go') diff --git a/pkg/email/parser_test.go b/pkg/email/parser_test.go index cc0a78abd..7df593642 100644 --- a/pkg/email/parser_test.go +++ b/pkg/email/parser_test.go @@ -574,4 +574,36 @@ d Command: "dup:", CommandArgs: "BUG: unable to handle kernel NULL pointer dereference in corrupted", }}, + + {`Sender: syzkaller-bugs@googlegroups.com +To: syzbot +From: bar@foo.com + +#syz dup: +BUG: unable to handle kernel NULL pointer dereference in corrupted +`, Email{ + From: "", + Cc: []string{"bar@foo.com", "syzbot@syzkaller.appspotmail.com"}, + Body: `#syz dup: +BUG: unable to handle kernel NULL pointer dereference in corrupted +`, + Command: "dup:", + CommandArgs: "BUG: unable to handle kernel NULL pointer dereference in corrupted", + }}, + + {`Sender: syzkaller-bugs@googlegroups.com +To: syzbot +From: bar@foo.com + +#syz fix: +When freeing a lockf struct that already is part of a linked list, make sure to +`, Email{ + From: "", + Cc: []string{"bar@foo.com", "syzbot@syzkaller.appspotmail.com"}, + Body: `#syz fix: +When freeing a lockf struct that already is part of a linked list, make sure to +`, + Command: "fix:", + CommandArgs: "When freeing a lockf struct that already is part of a linked list, make sure to", + }}, } -- cgit mrf-deployment