From: Daniel Jacobowitz Date: Fri, 15 Sep 2006 16:06:58 +0000 (+0000) Subject: gdb/testsuite/ X-Git-Tag: gdb-csl-symbian-6_4_50_20060226-12~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4afcb6d14fb7128e06a4100f0eee89e5a3b28c70;p=thirdparty%2Fbinutils-gdb.git gdb/testsuite/ * gdb.base/commands.exp (bp_deleted_in_command_test) (temporary_breakpoint_commands): Allow run.c without a pathname. * gdb.base/ending-run.exp: Allow E32Main. --- diff --git a/ChangeLog.csl b/ChangeLog.csl index 9f5ff163205..25ee2d82041 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,10 @@ +2006-09-15 Daniel Jacobowitz + + gdb/testsuite/ + * gdb.base/commands.exp (bp_deleted_in_command_test) + (temporary_breakpoint_commands): Allow run.c without a pathname. + * gdb.base/ending-run.exp: Allow E32Main. + 2006-09-15 Daniel Jacobowitz gdb/testsuite/ diff --git a/gdb/testsuite/gdb.base/commands.exp b/gdb/testsuite/gdb.base/commands.exp index eabf85e442b..998aadbdbbb 100644 --- a/gdb/testsuite/gdb.base/commands.exp +++ b/gdb/testsuite/gdb.base/commands.exp @@ -454,7 +454,7 @@ proc bp_deleted_in_command_test {} { # Create a breakpoint, and associate a command-list to it, with # one command that deletes this breakpoint. gdb_test "break factorial" \ - "Breakpoint \[0-9\]+ at .*: file .*/run.c, line \[0-9\]+\." \ + "Breakpoint \[0-9\]+ at .*: file .*run.c, line \[0-9\]+\." \ "breakpoint in bp_deleted_in_command_test" send_gdb "commands\n" @@ -495,7 +495,7 @@ proc bp_deleted_in_command_test {} { gdb_run_cmd gdb_expect { - -re ".*factorial command-list executed.*1.*$gdb_prompt $" { + -re ".*factorial command-list executed.*$gdb_prompt $" { pass "run factorial until breakpoint" } -re ".*$gdb_prompt $" { @@ -521,7 +521,7 @@ proc temporary_breakpoint_commands {} { # This test will verify that this commands list is executed when the # breakpoint is hit. gdb_test "tbreak factorial" \ - "Breakpoint \[0-9\]+ at .*: file .*/run.c, line \[0-9\]+\." \ + "Breakpoint \[0-9\]+ at .*: file .*run.c, line \[0-9\]+\." \ "breakpoint in temporary_breakpoint_commands" send_gdb "commands\n" @@ -557,7 +557,7 @@ proc temporary_breakpoint_commands {} { gdb_run_cmd gdb_expect { - -re ".*factorial tbreak commands executed.*1.*$gdb_prompt $" { + -re ".*factorial tbreak commands executed.*$gdb_prompt $" { pass "run factorial until temporary breakpoint" } timeout { fail "(timeout) run factorial until temporary breakpoint" } diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp index 1363a000ca4..ea30bec77a8 100644 --- a/gdb/testsuite/gdb.base/ending-run.exp +++ b/gdb/testsuite/gdb.base/ending-run.exp @@ -207,6 +207,10 @@ gdb_expect { # another `next' is necessary. gdb_test "next" ".*in start_l ().*" "step out of main (on sh)" } + -re "E32Main (.*).*$gdb_prompt $" { + # On SymbianOS there's a different function which calls main. + pass "step out of main (on SymbianOS)" + } -re ".*$gdb_prompt $" { fail "step out of main (at end 2)" } timeout { fail "step out of main (hang or timeout on step at end 2)"