#debugfuzzer command - fuzztest the program */
| 546 | |
| 547 | /* #debugfuzzer command - fuzztest the program */ |
| 548 | int |
| 549 | wiz_fuzzer(void) |
| 550 | { |
| 551 | if (flags.suppress_alert < FEATURE_NOTICE_VER(3,7,0)) { |
| 552 | pline("The fuzz tester will make NetHack execute random keypresses."); |
| 553 | There("is no conventional way out of this mode."); |
| 554 | } |
| 555 | if (paranoid_query(TRUE, "Do you want to start fuzz testing?")) { |
| 556 | /* Thoth, take the reins */ |
| 557 | if (y_n("Do you want to call panic() after impossible()?") == 'n') { |
| 558 | iflags.debug_fuzzer = fuzzer_impossible_continue; |
| 559 | } else { |
| 560 | iflags.debug_fuzzer = fuzzer_impossible_panic; |
| 561 | } |
| 562 | } |
| 563 | return ECMD_OK; |
| 564 | } |
| 565 | |
| 566 | /* #polyself command - change hero's form */ |
| 567 | int |
nothing calls this directly
no test coverage detected