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:
Pasi Kallinen
2018-11-08 15:50:53 +02:00
parent 4f541fe216
commit 0bb6754998
14 changed files with 76 additions and 3 deletions

View File

@@ -1061,6 +1061,8 @@ doup()
return 1;
}
if (ledger_no(&u.uz) == 1) {
if (iflags.debug_fuzzer)
return 0;
if (yn("Beware, there will be no return! Still climb?") != 'y')
return 0;
}