From: Tom de Vries Date: Sat, 27 Nov 2021 06:11:25 +0000 (+0100) Subject: [gdb/testsuite] Fix FAIL in gdb.base/list-missing-source.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=950065a38b317c32ffb0b9d4723a59d7faf95726;p=binutils-gdb.git [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) 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. --- diff --git a/gdb/testsuite/gdb.base/list-missing-source.exp b/gdb/testsuite/gdb.base/list-missing-source.exp index d6677fc0a5e..260ba4dcb7d 100644 --- a/gdb/testsuite/gdb.base/list-missing-source.exp +++ b/gdb/testsuite/gdb.base/list-missing-source.exp @@ -19,7 +19,7 @@ standard_testfile # Create a source file in the output directory. -set srcfile [standard_output_file main.c] +set srcfile [standard_output_file list-missing-source.c] set fd [open "$srcfile" w] puts $fd { int