]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog-2014-2021
[gdb/testsuite] Fix gdb.gdb/selftest.exp regexp
authorTom de Vries <tdevries@suse.de>
Tue, 13 Aug 2019 16:57:50 +0000 (18:57 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 13 Aug 2019 16:57:50 +0000 (18:57 +0200)
commitabc6c00fb6cbb199348ec5f0bf4d969ed48bdfad
treedf19c0b0d86880c3963acace1d3f9dae2391a39f
parent74c2c1f45f036c4f155cc65a86022ce6eef0c5c5
[gdb/testsuite] Fix gdb.gdb/selftest.exp regexp

With gdb.gdb/selftest.exp, we get:
...
(xgdb) PASS: gdb.gdb/selftest.exp: send SIGINT signal to child process
^M
Thread 1 "xgdb" received signal SIGINT, Interrupt.^M
0x00007ffff5bf01db in poll () from /lib64/libc.so.6^M
(gdb) FAIL: gdb.gdb/selftest.exp: send ^C to child process again
...

The failure is due to gdb printing 'Thread 1 "xgdb" received signal SIGINT',
but the regexp in the test-case expecting 'Program received signal SIGINT'.

Fix this by updating the regexp, similar to how that is done earlier in the
test-case.

gdb/testsuite/ChangeLog:

2019-08-13  Tom de Vries  <tdevries@suse.de>

* gdb.gdb/selftest.exp (send ^C to child process again): Accept also
Thread.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.gdb/selftest.exp