fuzzer tweaks
Prevent the fuzzer from randomly toggling the 'silent' option. If you use the default value of True then this eliminates most--but not all--of the beeping that happens when it is running. I'm not sure where the remaining beeps are coming from. Modify the random keystroke selection to implement some bias towards direction keys that I thought had already been there, plus a higher chance to entering digits to initiate number responses.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 options.c $NHDT-Date: 1554591224 2019/04/06 22:53:44 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.363 $ */
|
||||
/* NetHack 3.6 options.c $NHDT-Date: 1560789054 2019/06/17 16:30:54 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.364 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Michael Allison, 2008. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -3993,7 +3993,6 @@ boolean tinitial, tfrom_file;
|
||||
}
|
||||
|
||||
op = string_for_opt(opts, TRUE);
|
||||
|
||||
if (op) {
|
||||
if (negated) {
|
||||
config_error_add(
|
||||
@@ -4010,6 +4009,11 @@ boolean tinitial, tfrom_file;
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
if (iflags.debug_fuzzer && !initial) {
|
||||
/* don't randomly toggle this/these */
|
||||
if (boolopt[i].addr == &flags.silent)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
*(boolopt[i].addr) = !negated;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user