| 1 |
# test values assigned in foreach iteration |
| 2 |
|
| 3 |
set test "foreach_value" |
| 4 |
set ::result_string {longs[9] = 324 |
| 5 |
longs[8] = 192 |
| 6 |
longs[7] = 98 |
| 7 |
longs[6] = 36 |
| 8 |
longs[5] = 0 |
| 9 |
longs[1] = -4 |
| 10 |
longs[2] = -12 |
| 11 |
longs[4] = -16 |
| 12 |
longs[3] = -18 |
| 13 |
strings[5] = five |
| 14 |
strings[4] = four |
| 15 |
strings[1] = one |
| 16 |
strings[3] = three |
| 17 |
strings[2] = two |
| 18 |
2 strings in bucket 66 |
| 19 |
3 strings in bucket 67 |
| 20 |
2 strings in [f] bucket 67 |
| 21 |
1 strings in [o] bucket 66 |
| 22 |
1 strings in [t] bucket 66 |
| 23 |
1 strings in [t] bucket 67 |
| 24 |
} |
| 25 |
|
| 26 |
foreach runtime [get_runtime_list] { |
| 27 |
if {$runtime != ""} { |
| 28 |
stap_run_exact "${test}_${runtime}" $srcdir/$subdir/$test.stp \ |
| 29 |
--runtime=$runtime |
| 30 |
} else { |
| 31 |
stap_run_exact $test $srcdir/$subdir/$test.stp |
| 32 |
} |
| 33 |
} |