[gdb/testsuite] Fix FAIL in gdb.base/list-missing-source.exp
authorTom de Vries <tdevries@suse.de>
Sat, 27 Nov 2021 06:11:25 +0000 (07:11 +0100)
committerTom de Vries <tdevries@suse.de>
Sat, 27 Nov 2021 06:11:25 +0000 (07:11 +0100)
commit950065a38b317c32ffb0b9d4723a59d7faf95726
tree6a352efc3f5c0e21a2581a446fde173839c9f93e
parent429a55b86557883a18e9c6405918825eb6eafd28
[gdb/testsuite] Fix FAIL in gdb.base/list-missing-source.exp

In commit f8080fb7a44 "[gdb/testsuite] Add gdb.base/include-main.exp" a
file gdb.base/main.c was added, which caused the following regression:
...
(gdb) list^M
<gdb.base/main.c>
(gdb) FAIL: gdb.base/list-missing-source.exp: list
...

The problem is that the test-case does not expect to find a file main.c, but
now it finds gdb.base/main.c.

Fix this by using the more specific file name list-missing-source.c.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/list-missing-source.exp