| 1 |
set test "arith" |
| 2 |
if {![installtest_p]} { untested $test; return } |
| 3 |
|
| 4 |
foreach runtime [get_runtime_list] { |
| 5 |
set test "arith" |
| 6 |
set args "--vp=0" |
| 7 |
if {$runtime != ""} { |
| 8 |
lappend test "($runtime)" |
| 9 |
set args "--runtime=$runtime" |
| 10 |
} |
| 11 |
|
| 12 |
spawn stap -DMAXNESTING=5 $srcdir/$subdir/arith.stp $args |
| 13 |
set ok 0 |
| 14 |
expect { |
| 15 |
-timeout 150 |
| 16 |
-re {passes: [0-9]* failures: 0} { incr ok } |
| 17 |
timeout { fail "$test (timeout)" } |
| 18 |
eof { } |
| 19 |
} |
| 20 |
catch { close } |
| 21 |
catch { wait } |
| 22 |
if {$ok == 1} { pass "$test" } { fail "$test" } |
| 23 |
} |