From 950065a38b317c32ffb0b9d4723a59d7faf95726 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sat, 27 Nov 2021 07:11:25 +0100 Subject: [PATCH] [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. --- gdb/testsuite/gdb.base/list-missing-source.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2