This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix gdb.tui/completion.exp test
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 15 Nov 2017 12:23:36 -0500
- Subject: [binutils-gdb] Fix gdb.tui/completion.exp test
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 71774bc994e3f2a09c3b1988dbf2e99b86f53e2e ***
Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 71774bc994e3f2a09c3b1988dbf2e99b86f53e2e
Fix gdb.tui/completion.exp test
When I run it locally, the test gdb.tui/completion.exp test fails
because of a timeout:
Running /home/emaisin/src/binutils-gdb/gdb/testsuite/gdb.tui/completion.exp ...
FAIL: gdb.tui/completion.exp: completion of layout names: tab completion (timeout)
The problem seems to be this regex, which confirms that after doing
layout<TAB>, "layout" is printed again after the gdb prompt:
-re "^$input_line$"
The problem is that there's a trailing space in the output after
"layout". Since the regex has an anchored end (the $), it doesn't
match. Adding a space fixes the test.
gdb/testsuite/ChangeLog:
* gdb.tui/completionn.exp (test_tab_completion): Add space in
regex.