| 1 |
set test "regrediag" |
| 2 |
|
| 3 |
spawn stap -p2 $srcdir/$subdir/$test.stp |
| 4 |
set msgs 0 |
| 5 |
expect { |
| 6 |
-re {semantic error:[^\r\n]*\r\n} { incr msgs; exp_continue } |
| 7 |
eof { } |
| 8 |
} |
| 9 |
catch { close }; catch { wait } |
| 10 |
|
| 11 |
if { $msgs == 2 } then { pass $test } else { fail "$test $msgs" } |