]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Further handle long filenames in gdb.base/startup-with-shell.exp
authorTom de Vries <tdevries@suse.de>
Mon, 26 Feb 2024 14:59:47 +0000 (15:59 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 26 Feb 2024 14:59:47 +0000 (15:59 +0100)
commitd82ede20df36eb8acfc9e67969e396e3a8fe1d45
treeea2525ff7caafb22f45279cd2297f52f9bdc0188
parent2aaba7444679492ae9e2757d7d05ba63bd2ec3c7
[gdb/testsuite] Further handle long filenames in gdb.base/startup-with-shell.exp

In commit 52498004a34 ("gdb/testsuite: handle long filenames in
gdb.base/startup-with-shell.exp") we fixed a FAIL reported by the Linaro CI:
...
(gdb) print argv[1]
$1 = 0xfffed978 "<snip>/startup-with-shell/unique-file.unique-e"...
(gdb) FAIL: gdb.base/startup-with-shell.exp: startup_with_shell = on; \
  run_args = *.unique-extension: first argument expanded
...

PR testsuite/31410 reports a similar failure:
...
(gdb) print argv[1]
$1 = 0xfffeda96 "<snip>/startup-with-shell/*.unique-extens"...
(gdb) FAIL: gdb.base/startup-with-shell.exp: startup_with_shell = off; \
  run_args = *.unique-extension: first argument not expanded
...

Fix this in the same way, using "set print characters unlimited".

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31410
gdb/testsuite/gdb.base/startup-with-shell.exp