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:
committed by
Mark Pizzolato
parent
272bbd4551
commit
4041894b67
4
scp.c
4
scp.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user