From: Pedro Alves Date: Thu, 8 Jun 2023 13:55:13 +0000 (+0100) Subject: gdb.threads/schedlock.exp: handle "stopped" too (WIP, to squash) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2ef5b23ae7091185492e7f72516301f56b15b84;p=thirdparty%2Fbinutils-gdb.git gdb.threads/schedlock.exp: handle "stopped" too (WIP, to squash) Is there testsuite code handling SIGTRAP that we can clean up? Change-Id: I6efa8ea3706c9d1f8dda2cc99a5c1f9ad54f26f2 --- diff --git a/gdb/testsuite/gdb.threads/schedlock.exp b/gdb/testsuite/gdb.threads/schedlock.exp index a8148741033..73cbc1189c3 100644 --- a/gdb/testsuite/gdb.threads/schedlock.exp +++ b/gdb/testsuite/gdb.threads/schedlock.exp @@ -74,6 +74,10 @@ proc stop_process { description } { { pass $description } + -re "Thread .* stopped.*\r\n$gdb_prompt $" + { + pass $description + } timeout { fail "$description (timeout)"