| 1 |
set test "partial-inline" |
| 2 |
if {![installtest_p]} { untested $test; return } |
| 3 |
|
| 4 |
target_compile $srcdir/$subdir/$test.c $test.exe executable "additional_flags=-O2 additional_flags=-g additional_flags=-fasynchronous-unwind-tables" |
| 5 |
|
| 6 |
spawn stap $srcdir/$subdir/$test.stp -c ./$test.exe |
| 7 |
set bad 0 |
| 8 |
set good 0 |
| 9 |
expect { |
| 10 |
-timeout 30 |
| 11 |
"foo.part" { incr bad; exp_continue } |
| 12 |
"foo" { incr good; exp_continue } |
| 13 |
"main" { incr good; exp_continue } |
| 14 |
timeout { fail "$test (timeout)" } |
| 15 |
eof { } |
| 16 |
} |
| 17 |
catch {close}; catch {wait} |
| 18 |
if {$good > 0 && $bad == 0} { |
| 19 |
pass "$test" |
| 20 |
} else { |
| 21 |
fail "$test ($good,$bad)" |
| 22 |
} |