| 1 |
set test "at_deref" |
| 2 |
set subtest1 "at_kderef" |
| 3 |
set subtest2 "at_uderef" |
| 4 |
|
| 5 |
stap_run $subtest1 no_load $all_pass_string $srcdir/$subdir/at_deref1.stp -g -c "cat /dev/null" -w |
| 6 |
|
| 7 |
set res [target_compile $srcdir/$subdir/${test}.c ${test} executable "additional_flags=-O2 additional_flags=-g"] |
| 8 |
if { $res != "" } { |
| 9 |
verbose "target_compile failed: $res" 2 |
| 10 |
fail "${test}: unable to compile ${test}.c" |
| 11 |
} else { |
| 12 |
stap_run $subtest2 wait_5_secs $all_pass_string $srcdir/$subdir/at_deref2.stp -c ./${test} -w |
| 13 |
} |
| 14 |
|
| 15 |
# Cleanup |
| 16 |
if { $verbose == 0 } { catch { exec rm -f $test } } |
| 17 |
|