public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/29032] New: [gdb][test-case failure, taskset] FAIL: gdb.base/eof-exit.exp: with non-dump terminal: close GDB with eof (timeout)
@ 2022-04-06 11:36 vries at gcc dot gnu.org
  2022-04-06 11:36 ` [Bug gdb/29032] " vries at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: vries at gcc dot gnu.org @ 2022-04-06 11:36 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29032

            Bug ID: 29032
           Summary: [gdb][test-case failure, taskset] FAIL:
                    gdb.base/eof-exit.exp: with non-dump terminal: close
                    GDB with eof (timeout)
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

[ Note: not with system readline. ]

When running test-case gdb.base/eof-exit.exp, I get:
...
Running /home/vries/gdb_versions/devel/src/gdb/testsuite/gdb.base/eof-exit.exp
...

                === gdb Summary ===

# of expected passes            2
# of known failures             1
...

But when using taskset -c 0:
...
FAIL: gdb.base/eof-exit.exp: with non-dump terminal: close GDB with eof
(timeout)
FAIL: gdb.base/eof-exit.exp: with non-dump terminal: with bracketed-paste-mode
on: close GDB with eof (timeout)
...

First one in more detail:
...
(gdb) dir^M
Reinitialize source path to empty? (y or n) y^M
Source directories searched: $cdir:$cwd^M
(gdb) dir /home/vries/gdb_versions/devel/src/gdb/testsuite/gdb.base^M
Source directories searched:
/home/vries/gdb_versions/devel/src/gdb/testsuite/gdb.base:$cdir:$cwd^M
(gdb) ^M
(gdb) FAIL: gdb.base/eof-exit.exp: default: close GDB with eof (timeout)
...

The observed behaviour matches with ^D getting dropped.

Indeed, a retry at the point of the timeout fixes the fail:
...
diff --git a/gdb/testsuite/gdb.base/eof-exit.exp
b/gdb/testsuite/gdb.base/eof-exit.exp
index 2d9530ccebe..0b310ee4b0b 100644
--- a/gdb/testsuite/gdb.base/eof-exit.exp
+++ b/gdb/testsuite/gdb.base/eof-exit.exp
@@ -55,6 +55,10 @@ proc run_test {} {
        eof {
            fail "$gdb_test_name (missed the prompt)"
        }
+       timeout {
+           send_gdb "\004"
+           exp_continue
+       }
     }
 }

...

So, is ^D allowed to get dropped?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-05-25  8:20 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-06 11:36 [Bug gdb/29032] New: [gdb][test-case failure, taskset] FAIL: gdb.base/eof-exit.exp: with non-dump terminal: close GDB with eof (timeout) vries at gcc dot gnu.org
2022-04-06 11:36 ` [Bug gdb/29032] " vries at gcc dot gnu.org
2022-04-06 11:41 ` vries at gcc dot gnu.org
2022-04-07  8:02 ` vries at gcc dot gnu.org
2022-04-07  9:10 ` vries at gcc dot gnu.org
2022-04-07 10:00 ` vries at gcc dot gnu.org
2022-04-07 10:08 ` vries at gcc dot gnu.org
2022-04-07 10:32 ` vries at gcc dot gnu.org
2022-04-07 11:56 ` vries at gcc dot gnu.org
2022-04-07 12:44 ` aburgess at redhat dot com
2022-04-07 13:18 ` vries at gcc dot gnu.org
2022-04-07 14:44 ` vries at gcc dot gnu.org
2022-04-08 13:17 ` vries at gcc dot gnu.org
2022-04-08 15:37 ` vries at gcc dot gnu.org
2022-05-09 14:01 ` cvs-commit at gcc dot gnu.org
2022-05-25  8:20 ` [Bug gdb/29032] [gdb] ^D while not at prompt doesn't trigger quit vries at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).