2011-11-29 17:25:03 +05:30
|
|
|
#
|
|
|
|
# check the ps personalities
|
|
|
|
#
|
2022-08-29 14:43:10 +05:30
|
|
|
set ps ${topdir}src/ps/pscommand
|
2011-11-29 17:25:03 +05:30
|
|
|
|
|
|
|
set pers_match {
|
|
|
|
bsd "\\s+PID\\s+TTY\\s+STAT\\s+TIME\\s+COMMAND\\r"
|
|
|
|
linux "\\s+PID\\s+TTY\\s+TIME\\s+CMD\\r"
|
|
|
|
old "\\s+PID\\s+TTY\\s+STAT\\s+TIME\\s+COMMAND\\r"
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach { pers match } $pers_match {
|
|
|
|
set test "ps with $pers personality"
|
|
|
|
set env(PS_PERSONALITY) $pers
|
|
|
|
spawn $ps
|
|
|
|
expect_pass "$test" $match
|
|
|
|
}
|
|
|
|
|