mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
The cases are ordered in such a way that we naturally progress through the functionality, with the earliest failures perhaps shedding light on any later failures. sysutils/porch is used for one test if it's available, just to cleanly check that SIGINT is being ignored properly. Reviewed by: des, emaste (cherry picked from commit 85ff0b08ee699ff323404727998993275b4d2e2a)
14 lines
351 B
Text
14 lines
351 B
Text
-- We expect the caller to have spawned the appropriate application
|
|
write "text\r"
|
|
match "text"
|
|
|
|
write "^C"
|
|
|
|
-- If SIGINT isn't being ignored, we'll bail out somewhere in the process of
|
|
-- writing to the pty or trying to read from it to perform the following match.
|
|
write "text\r"
|
|
match "text"
|
|
|
|
-- Finally, just close it out cleanly.
|
|
write "^D"
|
|
eof()
|