mirror of
https://github.com/simh/simh.git
synced 2026-04-29 13:12:13 +00:00
makefile: Avoid using PCRE REGEX support on OS X
- OS X libpcreposix segfaults when a compiled regular expression is freed. - Revise regular expression syntax used in VAX diagnostic scripts to avoid Perl oriented extensions.
This commit is contained in:
@@ -106,10 +106,11 @@ set env DIAG_TEST=%1
|
||||
set env DIAG_DESC=%2
|
||||
set env -a DIAG_ERRORS=1
|
||||
noexpect
|
||||
if (SIM_REGEX_TYPE == "") echof "Missing Regular Expression support - skipping %DIAG_TEST% test\n"; exit 0
|
||||
expect -r "Hard error" go -q
|
||||
expect -r "Pass \d+, test (\d+), subtest (\d+), error (\d+)," set env -a DIAG_ERRORS=_EXPECT_MATCH_GROUP_3; return
|
||||
expect -r "Pass 1, test ([0-9][0-9]*), subtest ([0-9][0-9]*), error ([0-9][0-9]*)," set env -a DIAG_ERRORS=_EXPECT_MATCH_GROUP_3; return
|
||||
expect -r "System fatal error while testing" go -q
|
||||
expect -r "\.\. End of run, (\d+) (error|errors) detected, pass count is \d+," set env -a DIAG_ERRORS=_EXPECT_MATCH_GROUP_1; go -q
|
||||
expect -r "\.\. End of run, ([0-9][0-9]*) (error|errors) detected, pass count is [0-9][0-9]*," set env -a DIAG_ERRORS=_EXPECT_MATCH_GROUP_1; go -q
|
||||
expect "DS> "
|
||||
if (DIAG_QUIET_MODE) echof "\nRunning - %DIAG_DESC% %DIAG_TEST%\n"
|
||||
send "RUN %DIAG_TEST%\r"
|
||||
|
||||
Reference in New Issue
Block a user