| 1 |
# Check that the set_user_* functions work correctly. |
| 2 |
|
| 3 |
set test "set_user" |
| 4 |
if {![installtest_p]} { untested $test; return } |
| 5 |
if {![uprobes_p]} { untested "$test"; return } |
| 6 |
|
| 7 |
set srcfile "$srcdir/$subdir/$test.c" |
| 8 |
set exefile "[pwd]/$test.exe" |
| 9 |
set test_flags "additional_flags=-g" |
| 10 |
set res [target_compile "$srcfile" "$exefile" executable "$test_flags"] |
| 11 |
|
| 12 |
if { $res != ""} { |
| 13 |
verbose "target_compile failed: $res" 2 |
| 14 |
fail "$test compile" |
| 15 |
untested "$test" |
| 16 |
return |
| 17 |
} else { |
| 18 |
pass "$test compile" |
| 19 |
} |
| 20 |
stap_run $test no_load $all_pass_string -g -c "$exefile > /dev/null" $srcdir/$subdir/$test.stp |