1
0
mirror of https://github.com/simh/simh.git synced 2026-04-13 23:44:44 +00:00

TAPE: Fix potential crash in library unit tests

Improper declaration of state variables referenced in setjmp/longjmp.
This commit is contained in:
Larry Baker
2020-08-15 16:21:02 -07:00
committed by Mark Pizzolato
parent 272bbd4551
commit 4041894b67
3 changed files with 16 additions and 7 deletions

4
scp.c
View File

@@ -15563,9 +15563,9 @@ for (i = 0; (dptr = sim_devices[i]) != NULL; i++) {
tstat = SCPE_OK; /* can't enable, just skip device */
if (tstat != SCPE_OK) {
stat = tstat;
sim_printf ("%s device tests returned: %d - %s\n", dptr->name, tstat, sim_error_text (tstat));
sim_printf ("%s device tests returned: %d - %s\n", dptr->name, SCPE_BARE_STATUS (tstat), sim_error_text (tstat));
if (sim_ttisatty()) {
if (get_yn ("Continue with additional tests? [N]", SCPE_STOP) == SCPE_STOP)
if (get_yn ("Continue with additional tests? [N] ", SCPE_STOP) == SCPE_STOP)
break;
}
else