public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/testsuite: fix two "maint info line-table"-related tests
@ 2021-12-04  2:03 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2021-12-04  2:03 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a3e9c2f9da9ab84bb5f0d1e6dc7e99e6114ade39

commit a3e9c2f9da9ab84bb5f0d1e6dc7e99e6114ade39
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date:   Fri Dec 3 21:01:42 2021 -0500

    gdb/testsuite: fix two "maint info line-table"-related tests
    
    Commit 92228a334ba2 ("gdb: small "maintenance info line-table"
    readability improvements") change the output format of "maint info
    line-table" slightly, adding some empty lines between each
    line-table.  This causes two tests to start failing, update them to
    account for those empty lines.
    
    Change-Id: I9d33a58fce3e860ba0554b25f5582e8066a5c519

Diff:
---
 gdb/testsuite/gdb.base/maint.exp             | 4 ++++
 gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/gdb/testsuite/gdb.base/maint.exp b/gdb/testsuite/gdb.base/maint.exp
index 4b200879728..667f3733c9a 100644
--- a/gdb/testsuite/gdb.base/maint.exp
+++ b/gdb/testsuite/gdb.base/maint.exp
@@ -466,6 +466,10 @@ gdb_test_multiple "maint info line-table" \
 	# Matches an end marker in the above.
 	exp_continue
     }
+    -re "^\r\n" {
+	# Empty line between tables.
+	exp_continue
+    }
     -re "^$gdb_prompt $" {
 	gdb_assert $saw_srcfile $gdb_test_name
     }
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp b/gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp
index d55b7fd150e..1a4fe4a3bb6 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-ranges-base.exp
@@ -173,6 +173,10 @@ gdb_test_multiple "maint info line-table gdb.dwarf2/dw2-ranges-base.c" \
 	    incr end_seq_count
 	    exp_continue
 	}
+	-re "^\r\n" {
+	    # Empty lines between tables.
+	    exp_continue
+	}
 	-re "^$gdb_prompt $" {
 	    gdb_assert [expr $end_seq_count == 3] $gdb_test_name
 	}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-04  2:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-04  2:03 [binutils-gdb] gdb/testsuite: fix two "maint info line-table"-related tests Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).