]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Adjust gdb.base/sigall.exp for Cygwin
authorPedro Alves <pedro@palves.net>
Mon, 26 Jun 2023 20:03:32 +0000 (21:03 +0100)
committerPedro Alves <pedro@palves.net>
Mon, 9 Jun 2025 16:45:16 +0000 (17:45 +0100)
commit9caecd5d33f52bd35dcca9843cf5c76741726da9
tree7a382ac3c878ef90107fdcc65748e01a3c87fbd3
parentd29534b21d5bfe0a2964a048fabb345e1ad05b62
Adjust gdb.base/sigall.exp for Cygwin

The gdb.base/sigall.exp testcase has many FAILs on Cygwin currently.

From:

 Thread 1 "sigall" received signal SIGPWR, Power fail/restart.
 0x00007ffeac9ed134 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
 (gdb) FAIL: gdb.base/sigall.exp: get signal LOST

we see two issues.  The test is expecting "Program received ..." which
only appears if the inferior is single-threaded.  All Cygwin inferiors
are multi-threaded, because both Windows and the Cygwin runtime spawn
a few helper threads.

And then, SIGLOST is the same as SIGPWR on Cygwin.  The testcase
already knows to treat them the same on SPARC64 GNU/Linux.  We just
need to extend the relevant code to treat Cygwin the same.

With this, the test passes cleanly on Cygwin.

Approved-By: Tom Tromey <tom@tromey.com>
Change-Id: Ie3553d043f4aeafafc011347b6cb61ed58501667
gdb/testsuite/gdb.base/sigall.exp