| 1 |
# PR19799 - deleting from array of aggregate unreliable |
| 2 |
|
| 3 |
set test "agg_delete" |
| 4 |
lappend scripts "${srcdir}/${subdir}/${test}1.stp" |
| 5 |
lappend desc " - individual delete" |
| 6 |
lappend scripts "${srcdir}/${subdir}/${test}2.stp" |
| 7 |
lappend desc " - clear array" |
| 8 |
|
| 9 |
if {![installtest_p]} { untested $test; return } |
| 10 |
|
| 11 |
for {set idx 0} {$idx < [llength $scripts]} {incr idx} { |
| 12 |
set ok 0 |
| 13 |
set ko 0 |
| 14 |
|
| 15 |
set testname $test |
| 16 |
append testname [lindex $desc $idx] |
| 17 |
spawn stap [lindex $scripts $idx] |
| 18 |
expect { |
| 19 |
-timeout 150 |
| 20 |
-re {^ERROR:.+\r\n} { incr ko ; exp_continue } |
| 21 |
-re {^eek.+\r\n} { incr ko; exp_continue } |
| 22 |
-re {^\[0, [01]\]: \d+\r\n} { incr ok; exp_continue } |
| 23 |
timeout { fail "$testname timed out" } |
| 24 |
} |
| 25 |
catch { close }; catch { wait } |
| 26 |
if {$ok >= 6 && $ko == 0} { |
| 27 |
pass $testname |
| 28 |
} else { |
| 29 |
fail "$testname ($ok $ko)" |
| 30 |
} |
| 31 |
} |