mirror of
https://github.com/PDP-10/its.git
synced 2026-02-26 17:03:20 +00:00
Add, and look for, an explicit marker after (todo)/(todoi).
Trying to match the list output from these functions, without also
matching the "; Loading" messages from Lisp, is difficult to do reliably
in expect (as demonstrated by a series of test builds on a slowish VM).
Instead, use a marker ("=Build=") that won't appear in the output.
This commit is contained in:
committed by
Adam Sampson
parent
f185e2b74e
commit
de346f7a45
@@ -87,21 +87,9 @@ proc build_macsyma_portion {} {
|
||||
respond_load "(load \"maxdoc;mcldat\")"
|
||||
respond_load "(load \"libmax;module\")"
|
||||
respond_load "(load \"libmax;maxmac\")"
|
||||
respond_load "(todo)"
|
||||
expect {
|
||||
-re {\) *\r} {
|
||||
}
|
||||
"NIL" {
|
||||
}
|
||||
}
|
||||
type "(todoi)"
|
||||
expect {
|
||||
-re {\) *\r} {
|
||||
}
|
||||
"NIL" {
|
||||
}
|
||||
}
|
||||
type "(mapcan #'(lambda (x) (doit x)) (append todo todoi))"
|
||||
respond_load "(progn (print (todo)) (print (todoi)) \"=Build=\")"
|
||||
expect "=Build="
|
||||
respond "\r" "(mapcan #'(lambda (x) (doit x)) (append todo todoi))"
|
||||
set timeout 1000
|
||||
expect {
|
||||
";BKPT" {
|
||||
|
||||
Reference in New Issue
Block a user