| 1 |
set test "inherit" |
| 2 |
set ::result_string {1 |
| 3 |
2 |
| 4 |
3 |
| 5 |
4 |
| 6 |
42 |
| 7 |
{.foo=42, .bar={...}} |
| 8 |
{.foo=42, .bar={.x=3, .y=4}}} |
| 9 |
|
| 10 |
proc dyninst_kfails {index} { |
| 11 |
# The dyninst runtime isn't multi-arch, it only works on the |
| 12 |
# native architecture. PR14490. |
| 13 |
if {! [all_compile_flag_native_p $index]} { |
| 14 |
setup_kfail 14490 "*-*-*" |
| 15 |
} |
| 16 |
} |
| 17 |
|
| 18 |
set srcfile "$srcdir/$subdir/$test.cxx" |
| 19 |
set stpfile "$srcdir/$subdir/$test.stp" |
| 20 |
for {set i 0} {$i < [all_compile_flags]} {incr i} { |
| 21 |
set extra_flag [all_compile_flag $i] |
| 22 |
set extra_name [all_compile_flag_name $i] |
| 23 |
|
| 24 |
set test_flags "compiler=g++ additional_flags=-g $extra_flag" |
| 25 |
set res [target_compile "$srcfile" $test.exe executable "$test_flags"] |
| 26 |
if { $res != "" } { |
| 27 |
verbose "target_compile failed: $res" 2 |
| 28 |
fail "$test-$extra_name compile" |
| 29 |
untested "$test-$extra_name" |
| 30 |
continue |
| 31 |
} else { |
| 32 |
pass "$test-$extra_name compile" |
| 33 |
} |
| 34 |
|
| 35 |
if {[installtest_p]} { |
| 36 |
foreach runtime [get_runtime_list] { |
| 37 |
if {$runtime != ""} { |
| 38 |
if {[info procs ${runtime}_kfails] ne ""} { ${runtime}_kfails $i } |
| 39 |
stap_run3 "$test-$extra_name-$runtime" -w "$stpfile" $test.exe \ |
| 40 |
-c ./$test.exe --runtime=$runtime |
| 41 |
} elseif {[uprobes_p]} { |
| 42 |
stap_run3 "$test-$extra_name" -w "$stpfile" $test.exe -c ./$test.exe |
| 43 |
} else { |
| 44 |
untested "$test-$extra_name" |
| 45 |
} |
| 46 |
} |
| 47 |
} else { |
| 48 |
untested "$test-$extra_name" |
| 49 |
} |
| 50 |
catch {exec rm -f $test.exe} |
| 51 |
} |