diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-22 15:42:35 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-22 15:42:36 -0500 |
commit | 0ac85db529d1077551b92c6da66044eff672c315 (patch) | |
tree | 2194bfbc559e8f8df81890088f00dc8048217c31 /gdb/testsuite/gdb.base/recurse.exp | |
parent | 9d2d8a16e1ce033d6b7956d4b4f37961705bb5cf (diff) | |
download | gdb-0ac85db529d1077551b92c6da66044eff672c315.zip gdb-0ac85db529d1077551b92c6da66044eff672c315.tar.gz gdb-0ac85db529d1077551b92c6da66044eff672c315.tar.bz2 |
gdb/testsuite: eliminate gdb_suppress_tests mechanism
There is a lot of support code for the test suppression mechanism. But
as far as I know, it is not useful. The gdb_suppress_tests proc is in
fact disabled with this comment that has been there since forever:
return; # fnf - disable pending review of results where
# testsuite ran better without this
I suggest to just remove everything related to test suppression, that
removes some unnecessary complexity from the support code and the tests.
gdb/testsuite/ChangeLog:
* lib/gdb.exp (gdb_test_multiple): Remove things related to test
suppression.
(default_gdb_exit): Likewise.
(default_gdb_spawn): Likewise.
(send_gdb): Likewise.
(gdb_expect): Likewise.
(gdb_expect_list): Likewise.
(default_gdb_init): Likewise.
(gdb_suppress_entire_file): Remove.
(gdb_suppress_tests): Remove.
(gdb_stop_suppressing_tests): Remove.
(gdb_clear_suppressed): Remove.
* lib/mi-support.exp (mi_uncatched_gdb_exit): Remove things
related to test suppression.
(default_mi_gdb_start): Likewise.
(mi_gdb_reinitialize_dir): Likewise.
(mi_gdb_test): Likewise.
(mi_run_cmd_full): Likewise.
(mi_runto_helper): Likewise.
(mi_execute_to): Likewise.
* lib/prompt.exp (default_prompt_gdb_start): Likewise.
* gdb.base/bitfields.exp: Likewise.
* gdb.base/bitfields2.exp: Likewise.
* gdb.base/break.exp: Likewise.
* gdb.base/call-sc.exp: Likewise.
* gdb.base/callfuncs.exp: Likewise.
* gdb.base/dfp-test.exp: Likewise.
* gdb.base/endian.exp: Likewise.
* gdb.base/exprs.exp: Likewise.
* gdb.base/funcargs.exp: Likewise.
* gdb.base/hbreak2.exp: Likewise.
* gdb.base/recurse.exp: Likewise.
* gdb.base/scope.exp: Likewise.
* gdb.base/sepdebug.exp: Likewise.
* gdb.base/structs.exp: Likewise.
* gdb.base/until.exp: Likewise.
* gdb.cp/misc.exp: Likewise.
Change-Id: Ie6d3025091691ba72010faa28b85ebd417b738f7
Diffstat (limited to 'gdb/testsuite/gdb.base/recurse.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/recurse.exp | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/gdb/testsuite/gdb.base/recurse.exp b/gdb/testsuite/gdb.base/recurse.exp index 403035e..df85427 100644 --- a/gdb/testsuite/gdb.base/recurse.exp +++ b/gdb/testsuite/gdb.base/recurse.exp @@ -37,11 +37,9 @@ proc recurse_tests {} { "set first instance watchpoint" # Continue until initial set of b. - if [gdb_test "continue" \ + gdb_test "continue" \ "Continuing.*\[Ww\]atchpoint.*: b.*Old value = 0.*New value = 10.*" \ - "continue to first instance watchpoint, first time"] then { - gdb_suppress_tests - } + "continue to first instance watchpoint, first time" # Continue inward for a few iterations gdb_test "continue" "Breakpoint.* recurse \\(a=9\\).*" \ @@ -63,11 +61,9 @@ proc recurse_tests {} { "set second instance watchpoint" # Continue until initial set of b (second instance). - if [gdb_test "continue" \ + gdb_test "continue" \ "Continuing.*\[Ww\]atchpoint.*: b.*Old value = 0.*New value = 5.*"\ - "continue to second instance watchpoint, first time"] then { - gdb_suppress_tests - } + "continue to second instance watchpoint, first time" # Continue inward for a few iterations gdb_test "continue" "Breakpoint.* recurse \\(a=4\\).*" \ @@ -80,29 +76,23 @@ proc recurse_tests {} { "continue to recurse (a = 1)" # Continue until second set of b (second instance). - if [gdb_test "continue" \ + gdb_test "continue" \ "Continuing.*\[Ww\]atchpoint.*: b.*Old value = 5.*New value = 120.*return.*" \ - "continue to second instance watchpoint, second time"] then { - gdb_suppress_tests - } + "continue to second instance watchpoint, second time" # Continue again. We should have a watchpoint go out of scope now - if [gdb_test "continue" \ + gdb_test "continue" \ "Continuing.*\[Ww\]atchpoint.*deleted.*recurse \\(a=6\\) .*" \ - "second instance watchpoint deleted when leaving scope"] then { - gdb_suppress_tests - } + "second instance watchpoint deleted when leaving scope" # Continue until second set of b (first instance). # 24320 is allowed as the final value for b as that's the value # b would have on systems with 16bit integers. # # We could fix the test program to deal with this too. - if [gdb_test "continue" \ + gdb_test "continue" \ "Continuing.*\[Ww\]atchpoint.*b.*Old value = 10.*New value = \(3628800|24320\).*return.*" \ - "continue to first instance watchpoint, second time"] then { - gdb_suppress_tests - } + "continue to first instance watchpoint, second time" # Continue again. We should have a watchpoint go out of scope now. # @@ -126,13 +116,10 @@ proc recurse_tests {} { # this basically by watching for the frame pointer to change. When # the frame pointer changes, the test expects to be back in main, but # instead it is still in the epilogue of the callee. - if [gdb_test "continue" \ + gdb_test "continue" \ "Continuing.*\[Ww\]atchpoint.*deleted.*\(main \\(\\) \|21.*\}\).*" \ - "first instance watchpoint deleted when leaving scope"] then { - gdb_suppress_tests - } + "first instance watchpoint deleted when leaving scope" } - gdb_stop_suppressing_tests } # Preserve the old timeout, and set a new one that should be |