doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/x86_gs.exp
raw| 1 | set test "x86_gs" |
| 2 | if {![installtest_p]} { untested $test; return } |
| 3 | set arch [exec uname -i] |
| 4 | if {$arch!="i386"} { untested $test; return } |
| 5 | spawn stap $srcdir/$subdir/x86_gs.stp |
| 6 | expect { |
| 7 | -timeout 60 |
| 8 | -re "0\r\n" { pass $test } |
| 9 | -re "140\r\n" { pass $test } |
| 10 | eof { fail $test } |
| 11 | timeout { fail "$test unexpected timeout" } |
| 12 | } |
| 13 | catch {close}; catch {wait} |