| 1 |
set test "utf_pretty" |
| 2 |
|
| 3 |
if {! [installtest_p]} { untested "$test"; return } |
| 4 |
if {! [uprobes_p]} { untested "$test"; return } |
| 5 |
|
| 6 |
set ::result_string {{.c8='s', .c16='t', .c32='p', .s8="stap\u0391\u03A9\u263A\U0001F608", .s16="stap\u0391\u03A9\u263A\U0001F608", .s32="stap\u0391\u03A9\u263A\U0001F608"}} |
| 7 |
|
| 8 |
set srcfile "$srcdir/$subdir/$test.cxx" |
| 9 |
set stpfile "$srcdir/$subdir/$test.stp" |
| 10 |
set exefile "[pwd]/$test.exe" |
| 11 |
set test_flags "compiler=g++ additional_flags=-g additional_flags=-std=c++0x" |
| 12 |
set res [target_compile "$srcfile" "$exefile" executable "$test_flags"] |
| 13 |
if { $res != "" } { |
| 14 |
verbose "target_compile failed: $res" 2 |
| 15 |
fail "$test compile" |
| 16 |
untested "$test" |
| 17 |
return |
| 18 |
} else { |
| 19 |
pass "$test compile" |
| 20 |
} |
| 21 |
|
| 22 |
foreach runtime [get_runtime_list] { |
| 23 |
if {$runtime != ""} { |
| 24 |
stap_run3 "$test ($runtime)" "$stpfile" -c "$exefile" --runtime=$runtime |
| 25 |
} else { |
| 26 |
stap_run3 $test "$stpfile" -c "$exefile" |
| 27 |
} |
| 28 |
} |
| 29 |
if { $verbose == 0 } { catch { exec rm -f $exefile } } |