Fuzz testing debug tool
Add code to run a fuzz tester, simulating (more-or-less) random keyboard mashing. There's no option to turn it on, you need to set iflags.debug_fuzzer on via a debugger or something along those lines.
This commit is contained in:
@@ -642,6 +642,8 @@ struct obj *otmp UNUSED;
|
||||
return;
|
||||
#endif /* SIMPLE_MAIL */
|
||||
#ifdef DEF_MAILREADER /* This implies that UNIX is defined */
|
||||
if (iflags.debug_fuzzer)
|
||||
return;
|
||||
display_nhwindow(WIN_MESSAGE, FALSE);
|
||||
if (!(mr = nh_getenv("MAILREADER")))
|
||||
mr = DEF_MAILREADER;
|
||||
@@ -674,6 +676,8 @@ ckmailstatus()
|
||||
{
|
||||
struct mail_info *brdcst;
|
||||
|
||||
if (iflags.debug_fuzzer)
|
||||
return;
|
||||
if (u.uswallow || !flags.biff)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user