diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-06-07 12:51:34 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-06-07 12:51:34 -0400 |
commit | cfc75767cc276fb9e10c8239bb23c800a7f07e47 (patch) | |
tree | d24ca6aa50df02fddc8617455596612473cf5164 /gdb/testsuite | |
parent | a12a15e7c5ff9f3549dd185fa1acd5a9dddd001b (diff) | |
download | gdb-cfc75767cc276fb9e10c8239bb23c800a7f07e47.zip gdb-cfc75767cc276fb9e10c8239bb23c800a7f07e47.tar.gz gdb-cfc75767cc276fb9e10c8239bb23c800a7f07e47.tar.bz2 |
gdb/testsuite: gdb.base/continue-all-already-running.exp: add fail if can't run to main
While doing some changes, I managed to break this test in a way that
running to main didn't work. However, it didn't produce any FAIL. I
noticed because I diff'ed the results and saw some PASSes unexpectedly
disappear, but that's a bit fragile. Add a fail in case this test fails
to run to main. Ideally, I think that runto_main should by default
produce a FAIL when it fails (the opposite of the existing logic), but
that's a project of its own, so just fix this test for the moment.
gdb/testsuite/ChangeLog:
* gdb.base/continue-all-already-running.exp: Call fail if can't
run to main.
Change-Id: I84b816a126c92ac579ed5ebbe39b017bd5cb7096
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/continue-all-already-running.exp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index fd78401..4504096 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2021-06-07 Simon Marchi <simon.marchi@polymtl.ca> + + * gdb.base/continue-all-already-running.exp: Call fail if can't + run to main. + 2021-06-07 Andrew Burgess <andrew.burgess@embecosm.com> PR gdb/27847 diff --git a/gdb/testsuite/gdb.base/continue-all-already-running.exp b/gdb/testsuite/gdb.base/continue-all-already-running.exp index 23cd992..de84897 100644 --- a/gdb/testsuite/gdb.base/continue-all-already-running.exp +++ b/gdb/testsuite/gdb.base/continue-all-already-running.exp @@ -26,6 +26,7 @@ save_vars { GDBFLAGS } { } if ![runto_main] { + fail "can't run to main" return } |