Create a cheater to test strange save/resume cases.

Patch due to Aaron Traas, but needed modification because of code
drift since submission.
This commit is contained in:
Eric S. Raymond 2017-06-26 15:03:37 -04:00
parent 5581175840
commit d6cb6f0d8d
10 changed files with 124 additions and 10 deletions

View file

@ -127,6 +127,7 @@ extern unsigned long get_next_lcg_value(void);
extern long randrange(long);
extern long score(enum termination);
extern void terminate(enum termination) __attribute__((noreturn));
extern int savefile(FILE *);
extern int suspend(void);
extern int resume(void);
extern int restore(FILE *);