| 1 |
# Check that %#M and %#m within printf work correctly. |
| 2 |
|
| 3 |
set test "print_user_buffer" |
| 4 |
set srcfile "$srcdir/$subdir/$test.c" |
| 5 |
set exefile "[pwd]/$test.exe" |
| 6 |
set test_flags "additional_flags=-g" |
| 7 |
set res [target_compile "$srcfile" "$exefile" executable "$test_flags"] |
| 8 |
|
| 9 |
if { $res != ""} { |
| 10 |
verbose "target_compile failed: $res" 2 |
| 11 |
fail "$test compile" |
| 12 |
untested "$test" |
| 13 |
return |
| 14 |
} else { |
| 15 |
pass "$test compile" |
| 16 |
} |
| 17 |
stap_run $test no_load $all_pass_string -c "$exefile > /dev/null" $srcdir/$subdir/$test.stp |