| 1 |
# PR11590 optimized pre/postfix operators on variable throw away |
| 2 |
# initial variable assignment |
| 3 |
|
| 4 |
set test "prepost_optim" |
| 5 |
|
| 6 |
if {![installtest_p]} {untested $test; return} |
| 7 |
|
| 8 |
foreach runtime [get_runtime_list] { |
| 9 |
set test_name $test |
| 10 |
if {$runtime != ""} { |
| 11 |
set test_name "${test}_${runtime}" |
| 12 |
spawn stap --runtime=$runtime $srcdir/$subdir/$test.stp |
| 13 |
} else { |
| 14 |
spawn stap $srcdir/$subdir/$test.stp |
| 15 |
} |
| 16 |
|
| 17 |
set ok 0 |
| 18 |
expect { |
| 19 |
-timeout 180 |
| 20 |
-re {5 7 7 5} { incr ok; exp_continue } |
| 21 |
timeout { fail "$test_name (timeout)" } |
| 22 |
eof { } |
| 23 |
} |
| 24 |
catch {close}; catch {wait} |
| 25 |
|
| 26 |
if {$ok == 1} { pass "$test_name ($ok)" } { fail "$test_name ($ok)" } |
| 27 |
} |