summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/skip.exp
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2016-03-15 12:44:34 -0700
committerDoug Evans <dje@google.com>2016-03-15 12:44:34 -0700
commitaa52b601cc232d41a956c9929a090f077c6d1a4a (patch)
treebf62bd7328c963e647ef53043e1200d4eaeb0ab2 /gdb/testsuite/gdb.base/skip.exp
parent4e0c91e45402ebf4215066e4a61143896e831049 (diff)
downloadbinutils-gdb-aa52b601cc232d41a956c9929a090f077c6d1a4a.tar.gz
Remove hand-called function from test.
gdb/testsuite/ChangeLog: * gdb.base/skip.c (main): Call test_skip_file_and_function. * gdb.base/skip.exp: Remove hand calling test_skip_file_and_function.
Diffstat (limited to 'gdb/testsuite/gdb.base/skip.exp')
-rw-r--r--gdb/testsuite/gdb.base/skip.exp10
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.base/skip.exp b/gdb/testsuite/gdb.base/skip.exp
index 67ae9d9ac85..ce55dd28d34 100644
--- a/gdb/testsuite/gdb.base/skip.exp
+++ b/gdb/testsuite/gdb.base/skip.exp
@@ -281,17 +281,15 @@ with_test_prefix "step using -rfu for baz" {
# Test -fi + -fu.
with_test_prefix "step using -fi + -fu" {
- if ![runto_main] {
- fail "Can't run to main"
+ gdb_test_no_output "skip delete"
+
+ if ![runto test_skip_file_and_function no-message] {
+ fail "Can't run to test_skip_file_and_function"
return
}
- gdb_test_no_output "skip delete"
gdb_test "skip -fi skip1.c -fu test_skip" \
"Function test_skip in file skip1.c will be skipped when stepping\."
- gdb_breakpoint "test_skip_file_and_function"
- gdb_breakpoint "end_test_skip_file_and_function"
- gdb_test "call test_skip_file_and_function ()" "silently stop."
# Verify we can step into skip.c:test_skip but not skip1.c:test_skip.
gdb_test "step" "test_skip \\(\\) at.*" "step 1"
gdb_test "step" "test_skip_file_and_function \\(\\) at.*" "step 2"; # Return from test_skip()