gdb/testsuite: gdb.base/continue-all-already-running.exp: add fail if can't run to...
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 7 Jun 2021 16:51:34 +0000 (12:51 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 7 Jun 2021 16:51:34 +0000 (12:51 -0400)
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

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/continue-all-already-running.exp

index fd78401774b0ad25cda2a7263fa2439d5c6dbae9..45040960d0f0386b36b38072036ad52673bd87a2 100644 (file)
@@ -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
index 23cd9920bc739e5632e9c9b3d95888df8f1bbcf0..de84897c766700c11607e1149a9a477a44ec19a9 100644 (file)
@@ -26,6 +26,7 @@ save_vars { GDBFLAGS } {
 }
 
 if ![runto_main] {
+    fail "can't run to main"
     return
 }