| 1 |
set test "retblocklist" |
| 2 |
|
| 3 |
set res [target_compile $srcdir/$subdir/$test.c $test.exe executable "-g"] |
| 4 |
if { $res != "" } { |
| 5 |
verbose "target_compile $test failed: $res" 2 |
| 6 |
fail "$test.c compile" |
| 7 |
untested "$test" |
| 8 |
return |
| 9 |
} else { |
| 10 |
pass "$test.c compile" |
| 11 |
} |
| 12 |
|
| 13 |
|
| 14 |
if {! [installtest_p]} { |
| 15 |
untested "#test" |
| 16 |
return |
| 17 |
} |
| 18 |
|
| 19 |
set ko 0 |
| 20 |
spawn stap -w $srcdir/$subdir/$test.stp -c ./$test.exe |
| 21 |
expect { |
| 22 |
-timeout 20 |
| 23 |
"_start" { incr ko; exp_continue } |
| 24 |
"get_pc_thunk" { incr ko; exp_continue } |
| 25 |
eof { } |
| 26 |
} |
| 27 |
verbose -log "ko=$ko" |
| 28 |
|
| 29 |
if {$ko == 0} then { pass $test } else { fail $test } |
| 30 |
|
| 31 |
catch {exec rm -f $test.exe} |
| 32 |
|