mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
Uniquefy gdb.threads/attach-into-signal.exp
Hi, While examining BuildBot's logs, I noticed: <https://sourceware.org/ml/gdb-testers/2015-q3/msg03767.html> gdb.threads/attach-into-signal.exp has two nested loops and don't use unique messages. This commit fixes that. Pushed under the obvious rule. gdb/testsuite/ChangeLog: 2015-07-29 Sergio Durigan Junior <sergiodj@redhat.com> * gdb.threads/attach-into-signal.exp (corefunc): Use with_test_prefix on nested loops, uniquefying the test messages.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2015-07-29 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||
|
||||
* gdb.threads/attach-into-signal.exp (corefunc): Use
|
||||
with_test_prefix on nested loops, uniquefying the test messages.
|
||||
|
||||
2015-07-29 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||
|
||||
* gdb.python/py-objfile.exp: Fix typo that snuck in from my last
|
||||
|
@ -60,8 +60,10 @@ proc corefunc { threadtype executable } {
|
||||
set attempt 1
|
||||
set passes 1
|
||||
while { $passes < 3 && $attempt <= $attempts } {
|
||||
with_test_prefix "attempt $attempt" {
|
||||
set stoppedtry 0
|
||||
while { $stoppedtry < 10 } {
|
||||
with_test_prefix "stoppedtry $stoppedtry" {
|
||||
if [catch {open /proc/${testpid}/status r} fileid] {
|
||||
set stoppedtry 10
|
||||
break
|
||||
@ -78,6 +80,7 @@ proc corefunc { threadtype executable } {
|
||||
sleep 1
|
||||
set stoppedtry [expr $stoppedtry + 1]
|
||||
}
|
||||
}
|
||||
if { $stoppedtry >= 10 } {
|
||||
verbose -log $line2
|
||||
set test "process is still running on the attempt # $attempt of $attempts"
|
||||
@ -130,6 +133,8 @@ proc corefunc { threadtype executable } {
|
||||
|
||||
gdb_test "detach" "Detaching from.*" ""
|
||||
}
|
||||
}
|
||||
|
||||
if {$passes < 3} {
|
||||
if {$attempt > $attempts} {
|
||||
unresolved $test
|
||||
@ -139,7 +144,6 @@ proc corefunc { threadtype executable } {
|
||||
}
|
||||
|
||||
# Exit and detach the process.
|
||||
|
||||
gdb_exit
|
||||
|
||||
# Make sure we don't leave a process around to confuse the
|
||||
|
Reference in New Issue
Block a user