diff options
author | Tom de Vries <tdevries@suse.de> | 2022-04-11 10:28:41 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-04-11 10:28:41 +0200 |
commit | 04f4c17c7a14ebb6c2212267b2ebc83f1376fe20 (patch) | |
tree | daf0f6ee7f91f995003c161b7322c40fd041ec13 /gdb/testsuite | |
parent | e7be72923383c39361f14a6a940ad99383e654ad (diff) | |
download | gdb-04f4c17c7a14ebb6c2212267b2ebc83f1376fe20.zip gdb-04f4c17c7a14ebb6c2212267b2ebc83f1376fe20.tar.gz gdb-04f4c17c7a14ebb6c2212267b2ebc83f1376fe20.tar.bz2 |
[gdb/testsuite] Fix gdb.base/annota1.exp with pie
Since commit 359efc2d894 ("[gdb/testsuite] Make gdb.base/annota1.exp more
robust") we see this fail with target board unix/-fPIE/-pie:
...
FAIL: gdb.base/annota1.exp: run until main breakpoint (timeout)
...
The problem is that the commit makes the number and order of matched
annotations fixed, while between target boards unix and unix/-fPIE/-pie there
is a difference:
...
\032\032post-prompt
Starting program: outputs/gdb.base/annota1/annota1
+\032\032breakpoints-invalid
+
\032\032starting
\032\032frames-invalid
...
Fix this by optionally matching the additional annotation.
Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.base/annota1.exp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/annota1.exp b/gdb/testsuite/gdb.base/annota1.exp index 40a13e7..ac6ad64 100644 --- a/gdb/testsuite/gdb.base/annota1.exp +++ b/gdb/testsuite/gdb.base/annota1.exp @@ -159,6 +159,8 @@ set run_re \ "\r\n\032\032post-prompt\r\n" \ "Starting program: $binexp \r\n" \ $optional_re \ + "\(\r\n\032\032breakpoints-invalid\r\n\)?" \ + $optional_re \ "\r\n\032\032starting\r\n" \ $optional_re \ "\r\n\032\032frames-invalid\r\n" \ |