]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
Fix batch exit status test failure on Fedora 28
authorGary Benson <gbenson@redhat.com>
Mon, 3 Sep 2018 15:14:55 +0000 (16:14 +0100)
committerGary Benson <gbenson@redhat.com>
Tue, 4 Sep 2018 14:29:20 +0000 (15:29 +0100)
commitdd083ee23d23903e8bc595b64aa8ea62379491cd
treee0092e594586d6d1f5b7d19c32df98d06a4d903b
parent618a8fdba6fc86a6ed88df257bf5f44d85e9071b
Fix batch exit status test failure on Fedora 28

This commit adds calls to remote_close and clear_gdb_spawn_id to
gdb.base/batch-exit-status.exp, fixing failures reported by buildbot
on Fedora 28 where gdb_spawn_id not being reset by the previous test
caused default_gdb_spawn to return without spawning.

This commit also changes the test to use detect GDB's exit using
gdb_test_multiple expecting 'eof', rather than using 'wait -i' alone.
This means the testcase won't hang forever on failure as fixed in
gdb.base/quit.exp by commit 15763a09d4ae ("Fix 'gdb.base/quit.exp
hangs forever' if the test fails").

gdb/testsuite/ChangeLog:

* gdb.base/batch-exit-status.exp: Use gdb_test_multiple and expect
'eof' before 'wait -i'.  Use remote_close and clear_gdb_spawn_id.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/batch-exit-status.exp