diff options
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/list-missing-source.exp | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0675e85..acc930a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,6 +1,12 @@ 2019-10-03 Tom de Vries <tdevries@suse.de> PR testsuite/25059 + * gdb.base/list-missing-source.exp: Allowing the "Compilation + directory" line to be missing. + +2019-10-03 Tom de Vries <tdevries@suse.de> + + PR testsuite/25059 * gdb.base/info-types.exp: Make the presence of the 'unsigned int' type optional. diff --git a/gdb/testsuite/gdb.base/list-missing-source.exp b/gdb/testsuite/gdb.base/list-missing-source.exp index 703603e..497ccab 100644 --- a/gdb/testsuite/gdb.base/list-missing-source.exp +++ b/gdb/testsuite/gdb.base/list-missing-source.exp @@ -54,8 +54,8 @@ gdb_test "list" "1\[ \t\]+in\[ \t\]+$srcfile" gdb_test "info source" \ [multi_line \ "info source" \ - "Current source file is $srcfile" \ - "Compilation directory is \[^\n\r\]+" \ + "Current source file is $srcfile\(" \ + "Compilation directory is \[^\n\r\]+)?" \ "Source language is c." \ "Producer is \[^\n\r\]+" \ "Compiled with DWARF $decimal debugging format." \ |