Revert "Fuzzer improvements."

This reverts commit 435f1c4626.
This commit is contained in:
Bart House
2019-07-14 21:10:39 -07:00
parent 5d2181ced3
commit 4c1c247028
14 changed files with 8 additions and 337 deletions

View File

@@ -139,7 +139,7 @@ dosave0()
return 0;
#endif
HUP if (!iflags.debug_fuzzer && iflags.window_inited) {
HUP if (iflags.window_inited) {
nh_uncompress(fq_save);
fd = open_savefile();
if (fd > 0) {
@@ -1238,18 +1238,6 @@ int fd, mode;
bwrite(fd, (genericptr_t) msg, msglen);
++msgcount;
}
/* If the fuzzer is stopping and saving, save a seed as a message.
In 3.7, we will modify the save file format and save the seed
directly in the saved game state. */
if (iflags.fuzzer_saving) {
char message[BUFSIZ];
unsigned long seed = rul();
sprintf(message, "SEED:%ld:%lu", moves, seed);
fuzzer_log(LOG_MINIMAL, "STOP:%ld:%lu\n", moves, seed);
msglen = strlen(message);
bwrite(fd, (genericptr_t) &msglen, sizeof msglen);
bwrite(fd, (genericptr_t) message, msglen);
}
bwrite(fd, (genericptr_t) &minusone, sizeof (int));
}
debugpline1("Stored %d messages into savefile.", msgcount);