]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix gdb.threads/multiple-successive-infcall.exp on Cygwin (hack)
authorPedro Alves <pedro@palves.net>
Mon, 26 Jun 2023 18:19:04 +0000 (19:19 +0100)
committerPedro Alves <pedro@palves.net>
Mon, 9 Jun 2025 17:49:19 +0000 (18:49 +0100)
Need to retest, maybe it fixed itself on Windows 11, or something,
meanwhile...

Change-Id: I62becd91b41dc2bede8c35c1b4f792ecbbd048dc

gdb/testsuite/gdb.threads/multiple-successive-infcall.exp

index 2ead754b8f3c7cef0903b24b47edf3a82335c09f..1fed87bd94d298d64a699bebc98f1c5920e0d9a8 100644 (file)
@@ -122,3 +122,11 @@ for {set thread 1} {$thread <= $thread_count} {incr thread} {
 }
 
 gdb_assert {$testing_pthread == 4} "tested all pthreads"
+
+# Cygwin very often hangs closing GDB if we don't do this?  But WHY???
+# I don't really know.  I seems like GDB never sees stdin close.  But
+# then, DejaGnu sends kill after some seconds of timeout, and that
+# fails to kill gdb too.  On top of that, if I do "kill -9 GDBPID" on
+# another command line, GDB does die, and the testrun finishes...  For
+# now, force-kill so that the testsuite doesn't hang...
+gdb_test "with confirm off -- kill" ".*"