Fix test names starting with uppercase using multi-line gdb_test/mi_gdb_test

This fixes offender testcases that have test names starting with uppercase
when using gdb_test/mi_gdb_test in a multi-line construct.

gdb/testsuite/ChangeLog
2016-12-01  Luis Machado  <lgustavo@codesourcery.com>

	Fix test names starting with uppercase throughout the files.

	* gdb.ada/array_return.exp
	* gdb.ada/expr_delims.exp
	* gdb.ada/mi_dyn_arr.exp
	* gdb.ada/mi_interface.exp
	* gdb.ada/mi_var_array.exp
	* gdb.ada/watch_arg.exp
	* gdb.arch/alpha-step.exp
	* gdb.arch/altivec-regs.exp
	* gdb.arch/e500-regs.exp
	* gdb.arch/powerpc-d128-regs.exp
	* gdb.base/arrayidx.exp
	* gdb.base/break.exp
	* gdb.base/checkpoint.exp
	* gdb.base/debug-expr.exp
	* gdb.base/dmsym.exp
	* gdb.base/radix.exp
	* gdb.base/sepdebug.exp
	* gdb.base/testenv.exp
	* gdb.base/watch_thread_num.exp
	* gdb.base/watchpoint-cond-gone.exp
	* gdb.cell/break.exp
	* gdb.cell/ea-cache.exp
	* gdb.compile/compile.exp
	* gdb.cp/gdb2495.exp
	* gdb.gdb/selftest.exp
	* gdb.gdb/xfullpath.exp
	* gdb.go/hello.exp
	* gdb.go/integers.exp
	* gdb.objc/basicclass.exp
	* gdb.pascal/hello.exp
	* gdb.pascal/integers.exp
	* gdb.python/py-breakpoint.exp
	* gdb.python/py-cmd.exp
	* gdb.python/py-linetable.exp
	* gdb.python/py-xmethods.exp
	* gdb.python/python.exp
	* gdb.reverse/consecutive-precsave.exp
	* gdb.reverse/finish-precsave.exp
	* gdb.reverse/i386-precsave.exp
	* gdb.reverse/machinestate-precsave.exp
	* gdb.reverse/sigall-precsave.exp
	* gdb.reverse/solib-precsave.exp
	* gdb.reverse/step-precsave.exp
	* gdb.reverse/until-precsave.exp
	* gdb.reverse/watch-precsave.exp
	* gdb.threads/leader-exit.exp
	* gdb.threads/pthreads.exp
	* gdb.threads/wp-replication.exp
	* gdb.trace/actions.exp
	* gdb.trace/mi-tsv-changed.exp
	* gdb.trace/tsv.exp
This commit is contained in:
Luis Machado 2016-12-01 14:44:38 -06:00
parent de97fdd4a0
commit bb95117e10
52 changed files with 158 additions and 102 deletions

View File

@ -1,3 +1,59 @@
2016-12-01 Luis Machado <lgustavo@codesourcery.com>
Fix test names starting with uppercase throughout the files.
* gdb.ada/array_return.exp
* gdb.ada/expr_delims.exp
* gdb.ada/mi_dyn_arr.exp
* gdb.ada/mi_interface.exp
* gdb.ada/mi_var_array.exp
* gdb.ada/watch_arg.exp
* gdb.arch/alpha-step.exp
* gdb.arch/altivec-regs.exp
* gdb.arch/e500-regs.exp
* gdb.arch/powerpc-d128-regs.exp
* gdb.base/arrayidx.exp
* gdb.base/break.exp
* gdb.base/checkpoint.exp
* gdb.base/debug-expr.exp
* gdb.base/dmsym.exp
* gdb.base/radix.exp
* gdb.base/sepdebug.exp
* gdb.base/testenv.exp
* gdb.base/watch_thread_num.exp
* gdb.base/watchpoint-cond-gone.exp
* gdb.cell/break.exp
* gdb.cell/ea-cache.exp
* gdb.compile/compile.exp
* gdb.cp/gdb2495.exp
* gdb.gdb/selftest.exp
* gdb.gdb/xfullpath.exp
* gdb.go/hello.exp
* gdb.go/integers.exp
* gdb.objc/basicclass.exp
* gdb.pascal/hello.exp
* gdb.pascal/integers.exp
* gdb.python/py-breakpoint.exp
* gdb.python/py-cmd.exp
* gdb.python/py-linetable.exp
* gdb.python/py-xmethods.exp
* gdb.python/python.exp
* gdb.reverse/consecutive-precsave.exp
* gdb.reverse/finish-precsave.exp
* gdb.reverse/i386-precsave.exp
* gdb.reverse/machinestate-precsave.exp
* gdb.reverse/sigall-precsave.exp
* gdb.reverse/solib-precsave.exp
* gdb.reverse/step-precsave.exp
* gdb.reverse/until-precsave.exp
* gdb.reverse/watch-precsave.exp
* gdb.threads/leader-exit.exp
* gdb.threads/pthreads.exp
* gdb.threads/wp-replication.exp
* gdb.trace/actions.exp
* gdb.trace/mi-tsv-changed.exp
* gdb.trace/tsv.exp
2016-12-01 Luis Machado <lgustavo@codesourcery.com>
Fix test names starting with uppercase throughout the files.

View File

@ -52,7 +52,7 @@ gdb_test "break create_small_float_vector" \
gdb_test "cont" \
"Breakpoint \[0-9\]+, pck.create_small \\(\\).*" \
"Continuing to Create_Small"
"continuing to Create_Small"
gdb_test "finish" \
"Value returned is \\\$\[0-9\]+ = \\(1, 1\\)" \
@ -63,7 +63,7 @@ gdb_test "finish" \
gdb_test "cont" \
"Breakpoint \[0-9\]+, pck.create_large \\(\\).*" \
"Continuing to Create_Large"
"continuing to Create_Large"
# On hppa32, the value returned is too large to be returned via a register.
# Instead, it is returned using the struct convention, and the debugger
@ -82,7 +82,7 @@ gdb_test "finish" \
gdb_test "cont" \
"Breakpoint \[0-9\]+, pck.create_small_float_vector \\(\\).*" \
"Continuing to Create_Small_Float_Vector"
"continuing to Create_Small_Float_Vector"
gdb_test "finish" \
"Value returned is \\\$\[0-9\]+ = \\(4.25, 4.25\\)" \

View File

@ -39,26 +39,26 @@ gdb_test "continue" \
# for an expression delimiter.
gdb_test "print thread" \
"= 1" \
"Print variable 'thread'"
"print variable 'thread'"
gdb_test_no_output "delete 1"
gdb_test "watch thread" \
".*atchpoint \[0-9\]+: thread" \
"Set plain watchpoint on variable 'thread'"
"set plain watchpoint on variable 'thread'"
# Make sure that 'if' when followed by an expression beginning
# with 'i' works.
gdb_test "watch thread if i = 2" \
".*atchpoint \[0-9\]+: thread" \
"Set conditional watchpoint."
"set conditional watchpoint."
gdb_test "info break" \
".*${ws}.*atchpoint${ws}keep${ws}y${ws}thread${ws}.*atchpoint${ws}keep${ws}y${ws}thread${ws}stop only if i = 2" \
"Check that watchpoint is set correctly."
"check that watchpoint is set correctly."
# Check for right error when using both 'if' and 'thread' clauses.
gdb_test "break foo.adb:$bp_location if thread = 10 thread 999" \
".*Unknown thread 999\\." \
"Combination of 'if' and 'thread' delimiters."
"combination of 'if' and 'thread' delimiters."

View File

@ -45,7 +45,7 @@ mi_continue_to_line \
mi_gdb_test "-var-create bt * bt" \
"\\^done,name=\"bt\",numchild=\"3\",.*" \
"Create bt varobj"
"create bt varobj"
mi_gdb_test "-var-update 1 *" \
"\\^done,changelist=\\\[\\\]" \

View File

@ -45,7 +45,7 @@ mi_continue_to_line \
mi_gdb_test "-var-create ggg1 * ggg1" \
"\\^done,name=\"ggg1\",numchild=\"1\",value=\"{...}\",type=\"<ref> pck.gadatatype\",has_more=\"0\"" \
"Create ggg1 varobj"
"create ggg1 varobj"
mi_gdb_test "-var-list-children 1 ggg1" \
"\\^done,numchild=\"1\",children=\\\[child={name=\"ggg1.i\",exp=\"i\",numchild=\"0\",value=\"42\",type=\"integer\"}\\\],has_more=\"0\"" \

View File

@ -45,7 +45,7 @@ mi_continue_to_line \
mi_gdb_test "-var-create vta * vta" \
"\\^done,name=\"vta\",numchild=\"2\",.*" \
"Create bt varobj"
"create bt varobj"
mi_gdb_test "-var-list-children vta" \
"\\^done,numchild=\"2\",children=\\\[child={name=\"vta.n\",exp=\"n\",numchild=\"0\",type=\"bar\\.int\"},child={name=\"vta.f\",exp=\"f\",numchild=\"0\",type=\"array \\(1 .. n\\) of character\"}\\\],.*" \

View File

@ -32,7 +32,7 @@ runto "watch.adb:$bp_location"
gdb_test "watch x" \
".*atchpoint \[0-9\]+: x" \
"Set watchpoint on function argument X"
"set watchpoint on function argument X"
# Then insert a breakpoint at the location we'd like to continue to...
set bp_location [gdb_get_line_number "BREAK2" ${testdir}/watch.adb]
@ -45,6 +45,6 @@ gdb_test "break watch.adb:$bp_location" \
gdb_test "cont" \
"Breakpoint \[0-9\]+, watch \\(\\).*" \
"Continuing to second breakpoint"
"continuing to second breakpoint"

View File

@ -94,7 +94,7 @@ proc test_stepi {function } {
gdb_test "x /i \$pc" \
"0x\[0-9a-fA-F\]+ <.*>:\[ \t\]+fneg.*" \
"Check stepi over fb$function stopped on fneg instruction"
"check stepi over fb$function stopped on fneg instruction"
}

View File

@ -170,12 +170,12 @@ gdb_expect_list "info vector" ".*$gdb_prompt $" {
gdb_test "break vector_fun" \
"Breakpoint 2 at.*altivec-regs.c, line \[0-9\]+\\." \
"Set breakpoint at vector_fun"
"set breakpoint at vector_fun"
# Actually it is nuch easier to see these results printed in hex.
gdb_test "set output-radix 16" \
"Output radix now set to decimal 16, hex 10, octal 20." \
"Set output radix to hex"
"set output radix to hex"
gdb_test "continue" \
"Breakpoint 2, vector_fun .a=.0xfefefefe, 0xfefefefe, 0xfefefefe, 0xfefefefe., b=.0x1010101, 0x1010101, 0x1010101, 0x1010101.*altivec-regs.c.*vec_splat_u8.2..;" \

View File

@ -160,12 +160,12 @@ if ![runto_main] then {
gdb_test "break vector_fun" \
"Breakpoint 2 at.*e500-regs.c, line \[0-9\]+\\." \
"Set breakpoint at vector_fun"
"set breakpoint at vector_fun"
# Actually it is nuch easier to see these results printed in hex.
# gdb_test "set output-radix 16" \
# "Output radix now set to decimal 16, hex 10, octal 20." \
# "Set output radix to hex"
# "set output radix to hex"
gdb_test "continue" \
"Breakpoint 2, vector_fun .a=.-2, -2., b=.1, 1.*e500-regs.c.*ev_create_s32 .2, 2.;" \

View File

@ -57,14 +57,14 @@ gdb_test "print \$dl$i" "\\\$$decimal = 1\.2345678910" "print dl$i register as D
gdb_test "info reg dl$i" \
"dl$i\[ \]*1\.2345678910\[\t\]*\\(raw 0x2205800000000000000000049c5de09c\\)" \
"Print dl$i register with the info reg command"
"print dl$i register with the info reg command"
gdb_test "info reg f[expr 2*$i]" \
"f[expr 2*$i]\[ \]*8\.608957309287334e\-145\[\t\]*\\(raw 0x2205800000000000\\)" \
"Testing lower half of dl$i register"
"testing lower half of dl$i register"
gdb_test "info reg f[expr 2*$i+1]" \
"f[expr 2*$i+1]\[ \]*9\.7841140127686122e\-314\[\t\]*\\(raw 0x000000049c5de09c\\)" \
"Testing upper half of dl$i register"
"testing upper half of dl$i register"
}

View File

@ -38,7 +38,7 @@ gdb_test_no_output "set print array-indexes off" \
gdb_test "print array" \
"\\{1, 2, 3, 4\\}" \
"Print array with array-indexes off"
"print array with array-indexes off"
# Second, print the same array with the indexes
@ -47,6 +47,6 @@ gdb_test_no_output "set print array-indexes on" \
gdb_test "print array" \
"\\{\\\[0\\\] = 1, \\\[1\\\] = 2, \\\[2\\\] = 3, \\\[3\\\] = 4\\}" \
"Print array with array-indexes on"
"print array with array-indexes on"

View File

@ -434,7 +434,7 @@ gdb_test "tbreak $srcfile:factorial" "Temporary breakpoint.*at.* file .*$srcfile
#
gdb_test "tbreak $bp_location1" \
"Temporary breakpoint.*at.* file .*$srcfile, line $bp_location1.*" \
"Temporary breakpoint line number #1"
"temporary breakpoint line number #1"
gdb_test "tbreak $bp_location6" "Temporary breakpoint.*at.* file .*$srcfile, line $bp_location6.*" "temporary breakpoint line number #2"
@ -443,7 +443,7 @@ gdb_test "tbreak $bp_location6" "Temporary breakpoint.*at.* file .*$srcfile, lin
#
gdb_test "tbreak $srcfile:$bp_location2" \
"Temporary breakpoint.*at.* file .*$srcfile, line $bp_location2.*" \
"Temporary breakpoint line number in file #1"
"temporary breakpoint line number in file #1"
set bp_location11 [gdb_get_line_number "set breakpoint 11 here"]
gdb_test "tbreak $srcfile:$bp_location11" "Temporary breakpoint.*at.* file .*$srcfile, line $bp_location11.*" "Temporary breakpoint line number in file #2"

View File

@ -154,7 +154,7 @@ gdb_test "continue" "breakpoint 3.*" "break3 one"
gdb_test "shell diff -s $pi_txt $copy1_txt" \
"Files .*pi.txt and .*copy1.txt are identical.*" \
"Diff input and output one"
"diff input and output one"
#
# And now run from various checkpoints, allowing
@ -207,7 +207,7 @@ gdb_test "print lines" " = 1162.*" "verify lines 7 two"
gdb_test "shell diff -s $pi_txt $copy1_txt" \
"Files .*pi.txt and .*copy1.txt are identical.*" \
"Diff input and output two"
"diff input and output two"
#
# OK, now allow the original program to delete the output file,
@ -272,23 +272,23 @@ gdb_test "print ftell (out) > 100000" " = 1.*" "outfile still open 10"
delete_breakpoints
gdb_test "continue" \
"Deleting copy.*$inferior_exited_re normally.*Switching to.*" \
"Exit, dropped into next fork one"
"exit, dropped into next fork one"
gdb_test "continue" \
"Deleting copy.*$inferior_exited_re normally.*Switching to.*" \
"Exit, dropped into next fork two"
"exit, dropped into next fork two"
gdb_test "continue" \
"Deleting copy.*$inferior_exited_re normally.*Switching to.*" \
"Exit, dropped into next fork three"
"exit, dropped into next fork three"
gdb_test "continue" \
"Deleting copy.*$inferior_exited_re normally.*Switching to.*" \
"Exit, dropped into next fork four"
"exit, dropped into next fork four"
gdb_test "continue" \
"Deleting copy.*$inferior_exited_re normally.*Switching to.*" \
"Exit, dropped into next fork five"
"exit, dropped into next fork five"
#
# There should be still at least five forks left

View File

@ -54,4 +54,4 @@ test_debug_expr "print /x {char\[4\]} array" \
# This caused gdb to output garbage and possibly segfault
gdb_test "print \"hello\"" \
".*OP_STRING\[^\r\n\]*Language-specific string type: 0.*\[\r\n\]\\$$decimal = \"hello\"\[\r\n\].*" \
"String evaluation with debug expr"
"string evaluation with debug expr"

View File

@ -80,7 +80,7 @@ gdb_breakpoint dmsym_main.c:[gdb_get_line_number "BREAK" dmsym_main.c]
gdb_run_cmd
gdb_test "" \
"Breakpoint $num, pck__foo__bar__minsym__2 \\(\\) at.*" \
"Run until breakpoint at BREAK"
"run until breakpoint at BREAK"
gdb_test "continue" \
"Breakpoint $num, main \\(\\) at.*"

View File

@ -154,21 +154,21 @@ test_output_radix 16 "10" "20"
gdb_test "set radix" \
"Input and output radices now set to decimal 10, hex a, octal 12\." \
"Reset radices"
"reset radices"
gdb_test "set input-radix 0" \
"Nonsense input radix ``decimal 0''; input radix unchanged\\." \
"Reject input-radix 0"
gdb_test "show input-radix" \
"Default input radix for entering numbers is 10\\." \
"Input radix unchanged after rejecting 0"
"input radix unchanged after rejecting 0"
gdb_test "set input-radix 1" \
"Nonsense input radix ``decimal 1''; input radix unchanged\\." \
"Reject input-radix 1"
gdb_test "show input-radix" \
"Default input radix for entering numbers is 10\\." \
"Input radix unchanged after rejecting 1"
"input radix unchanged after rejecting 1"
gdb_test "set output-radix 0" \
"Unsupported output radix ``decimal 0''; output radix unchanged\\." \
@ -181,11 +181,11 @@ gdb_test "set output-radix 1" \
"Reject output-radix 1"
gdb_test "show output-radix" \
"Default output radix for printing of values is 10\\." \
"Output radix unchanged after rejecting 1"
"output radix unchanged after rejecting 1"
gdb_test "set radix 7" \
"Unsupported output radix ``decimal 7''; output radix unchanged\\." \
"set radix 7 rejected"
gdb_test "show output-radix" \
"Default output radix for printing of values is 10\\." \
"Output radix unchanged after rejection through set radix command"
"output radix unchanged after rejection through set radix command"

View File

@ -242,11 +242,11 @@ gdb_test "tbreak $srcfile:factorial" "Temporary breakpoint.*at.* file .*$srcfile
gdb_test "tbreak $bp_location1" \
"Temporary breakpoint.*at.* file .*$srcfile, line $bp_location1.*" \
"Temporary breakpoint line number #1"
"temporary breakpoint line number #1"
gdb_test "tbreak $bp_location6" \
"Temporary breakpoint.*at.* file .*$srcfile, line $bp_location6.*" \
"Temporary breakpoint line number #2"
"temporary breakpoint line number #2"
#
# test break at line number in file
@ -254,7 +254,7 @@ gdb_test "tbreak $bp_location6" \
gdb_test "tbreak $srcfile:$bp_location2" \
"Temporary breakpoint.*at.* file .*$srcfile, line $bp_location2.*" \
"Temporary breakpoint line number in file #1"
"temporary breakpoint line number in file #1"
set bp_location11 [gdb_get_line_number "set breakpoint 11 here"]
gdb_test "tbreak $srcfile:$bp_location11" "Temporary breakpoint.*at.* file .*$srcfile, line $bp_location11.*" "Temporary breakpoint line number in file #2"

View File

@ -49,7 +49,7 @@ gdb_breakpoint $bp_line
# First test with no TEST_GDB_VAR
gdb_test "continue" \
".*Program found 0 variables starting with TEST_GDB.*" \
"Test no TEST_GDB var"
"test no TEST_GDB var"
gdb_test_no_output "set env TEST_GDB_VAR1 test1" \
"Set TEST_GDB_VAR1"
@ -60,7 +60,7 @@ gdb_breakpoint $bp_line
# Second test with one TEST_GDB_VAR
gdb_test "continue" \
".*Program found 1 variables starting with TEST_GDB.*" \
"Test with one TEST_GDB var"
"test with one TEST_GDB var"
gdb_test_no_output "set env TEST_GDB_VAR2 test2" \
"Set TEST_GDB_VAR2"
@ -71,7 +71,7 @@ gdb_breakpoint $bp_line
# Third test with two TEST_GDB_VAR
gdb_test "continue" \
".*Program found 2 variables starting with TEST_GDB.*" \
"Test with two TEST_GDB var"
"test with two TEST_GDB var"
gdb_test_no_output "unset env TEST_GDB_VAR1" \
"Unset TEST_GDB_VAR1"
@ -83,7 +83,7 @@ gdb_breakpoint $bp_line
# with unset command.
gdb_test "continue" \
".*Program found 1 variables starting with TEST_GDB.*" \
"Test with one TEST_GDB var, after unset"
"test with one TEST_GDB var, after unset"
gdb_exit
@ -103,7 +103,7 @@ gdb_test "show env" ".*TEST_GDB_GLOBAL=.*" "test passing TEST_GDB_GLOBAL to GDB"
# First test with only inherited TEST_GDB_GLOBAL
gdb_test "continue" \
".*TEST_GDB_GLOBAL=Global environment value.*Program found 1 variables starting with TEST_GDB.*" \
"Test with TEST_GDB_GLOBAL"
"test with TEST_GDB_GLOBAL"
gdb_test_no_output "unset env TEST_GDB_GLOBAL" \
"Unset TEST_GDB_GLOBAL"
@ -114,7 +114,7 @@ gdb_breakpoint $bp_line
# Second test with one TEST_GDB_VAR
gdb_test "continue" \
".*Program found 0 variables starting with TEST_GDB.*" \
"Test with TEST_GDB_GLOBAL unset"
"test with TEST_GDB_GLOBAL unset"
gdb_exit

View File

@ -75,7 +75,7 @@ delete_breakpoints
gdb_test "awatch shared_var thread $thread_num" \
"Hardware access \\(read/write\\) watchpoint .*: shared_var.*" \
"Watchpoint on shared variable"
"watchpoint on shared variable"
gdb_test "info breakpoint \$bpnum" \
"stop only in thread $thread_num" \

View File

@ -43,4 +43,4 @@ gdb_test "watch c if c == 30" "atchpoint \[0-9\]*.*" "place the watchpoint"
gdb_test "finish" \
"Watchpoint .* deleted because the program has left the block in.*which its expression is valid..*in (\\.?jumper|func).*" \
"Catch the no longer valid watchpoint"
"catch the no longer valid watchpoint"

View File

@ -60,7 +60,7 @@ gdb_load ${ppu_bin}
# shouldn't prompt for anything.
gdb_test "delete breakpoints" \
"" \
"No prompt when deleting non-existing breakpoints"
"no prompt when deleting non-existing breakpoints"
gdb_test "break main" \
"Breakpoint.*at.* file .*$testfile.c, line.*" \

View File

@ -78,7 +78,7 @@ gdb_test "p *ppe_int_ptr" \
# int_var and should now also contain 42 (ea cache has been flushed).
gdb_test "t 1" \
".*Switching to thread 1.*" \
"Switch to thread 1"
"switch to thread 1"
gdb_test "p int_var" \
".*=.*42.*" \

View File

@ -42,15 +42,15 @@ clean_restart ${testfile}
#
gdb_test "compile code int i=2;" \
"The program must be running for the compile command to work.*" \
"Test compile code command without running inferior"
"test compile code command without running inferior"
gdb_test "compile int i=2;" \
"The program must be running for the compile command to work.*" \
"Test compile command without running inferior"
"test compile command without running inferior"
gdb_test "compile file -r ${srcdir}/${subdir}/${testfile}-mod.c" \
"The program must be running for the compile command to work.*" \
"Test compile file command without running inferior"
"test compile file command without running inferior"
if ![runto_main] {
return -1
@ -79,7 +79,7 @@ gdb_test_no_output "compile -raw -- void _gdb_expr(){int i = 5;}" \
gdb_test "compile -- -r void _gdb_expr(){int i = 5;}" \
".* error: 'r' undeclared \\(first use in this function\\).*" \
"Test delimiter with -r after it"
"test delimiter with -r after it"
gdb_test "p globalvar" " = 10" "expect 10"
@ -339,7 +339,7 @@ gdb_test "compile file -r" \
"Test compile file and raw option without a filename"
gdb_test "compile file -z" \
"Unknown argument.*" \
"Test compile file with unknown argument"
"test compile file with unknown argument"
# LOC_CONST tests.

View File

@ -80,7 +80,7 @@ gdb_test "p exceptions.throw_function_with_handler()" " = 2"
# does not handle it. It should be rewound.
gdb_test "p exceptions.throw_function()" \
"The program being debugged entered a std::terminate call, .*" \
"Call a function that raises an exception without a handler."
"call a function that raises an exception without a handler."
# Make sure that after rewinding we are back at the call parent.
gdb_test "bt" \
@ -103,12 +103,12 @@ gdb_test_multiple "set unwind-on-terminating-exception off" \
# Check that it is turned off.
gdb_test "show unwind-on-terminating-exception" \
"exception is unhandled while in a call dummy is off.*" \
"Turn off unwind on terminating exception flag"
"turn off unwind on terminating exception flag"
# Check that the old behaviour is restored.
gdb_test "p exceptions.throw_function()" \
"The program being debugged was signaled while in a function called .*" \
"Call a function that raises an exception with unwinding off.."
"call a function that raises an exception with unwinding off.."
# Restart the inferior back at main.
if ![runto_main] then {
@ -129,7 +129,7 @@ gdb_test_multiple "set unwindonsignal on" "turn unwindonsignal on" {
# Check that it is turned on.
gdb_test "show unwindonsignal" \
"signal is received while in a call dummy is on.*" \
"Turn on unwind on signal"
"turn on unwind on signal"
# Check to see if new behaviour interferes with
# normal signal handling in inferior function calls.
@ -145,7 +145,7 @@ gdb_test_multiple "set unwindonsignal off" "turn unwindonsignal off" {
# Check that it is actually turned off.
gdb_test "show unwindonsignal" \
"signal is received while in a call dummy is off.*" \
"Turn off unwind on signal"
"turn off unwind on signal"
# Check to see if new behaviour interferes with
# normal signal handling in inferior function calls.

View File

@ -274,7 +274,7 @@ proc test_with_self { } {
# disassemble yourself
gdb_test "x/10i main" \
"x/10i.*main.*main($cxx_main_args_re)?.$decimal.*main($cxx_main_args_re)?.$decimal.*" \
"Disassemble main"
"disassemble main"
# We'll need this when we send a ^C to GDB. Need to do it before we
# run the program and gdb starts saving and restoring tty states.

View File

@ -52,7 +52,7 @@ proc test_with_self {} {
# An empty filename
gdb_test "print gdb_realpath (\"\")" \
".\[0-9\]+ =.*\"\"" \
"An empty filename"
"an empty filename"
return 0
}

View File

@ -39,7 +39,7 @@ setup_xfail "*-*-*"
gdb_test "print st" \
".* = $hex \"\"" \
"Starting string check"
"starting string check"
if { [gdb_breakpoint ${srcfile}:${bp_location1}] } {
pass "setting breakpoint 1"
@ -49,4 +49,4 @@ gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "going to first breakpoint"
gdb_test "print st" \
".* = $hex \"Hello, world!\"" \
"String after assignment check"
"string after assignment check"

View File

@ -112,4 +112,4 @@ gdb_test "cont" \
"Going to second breakpoint"
gdb_test "print i" \
".* = 5.*" \
"Value of i after assignment"
"value of i after assignment"

View File

@ -163,21 +163,21 @@ gdb_test continue \
#
gdb_test "print \[self printHi\]" \
"Hi.*\\$\[0-9\] = \\(.*objc_object \\*\\) 0x\[0-9a-f\]+" \
"Call an Objective-C method with no arguments"
"call an Objective-C method with no arguments"
gdb_test "print \[self printNumber: 42\]" \
"42.*\\$\[0-9\] = 43" \
"Call an Objective-C method with one argument"
"call an Objective-C method with one argument"
#
# Test printing the object description
#
gdb_test "print-object object" \
"BasicClass gdb test object" \
"Use of the print-object command"
"use of the print-object command"
gdb_test "po self" \
"BasicClass gdb test object" \
"Use of the po (print-object) command"
"use of the po (print-object) command"

View File

@ -50,7 +50,7 @@ gdb_test "cont" \
"Going to first breakpoint"
gdb_test "print st" \
".* = ''.*" \
"Empty string check"
"empty string check"
# This test also fails for gpc because the program
# stops after the string has been written
@ -63,4 +63,4 @@ gdb_test "cont" \
"Going to second breakpoint"
gdb_test "print st" \
".* = 'Hello, world!'.*" \
"String after assignment check"
"string after assignment check"

View File

@ -117,4 +117,4 @@ gdb_test "cont" \
"Going to second breakpoint"
gdb_test "print i" \
".* = 5.*" \
"Value of i after assignment"
"value of i after assignment"

View File

@ -72,7 +72,7 @@ proc test_bkpt_basic { } {
gdb_test "python print (blist\[1\].location)" \
"py-breakpoint\.c:${mult_line}*" \
"Check breakpoint location @mult_line"
"check breakpoint location @mult_line"
# Check hit and ignore counts.
gdb_test "python print (blist\[1\].hit_count)" \
@ -392,7 +392,7 @@ proc test_bkpt_eval_funcs { } {
gdb_test "python eval_bp2.stop = stop_func" \
"RuntimeError: Only one stop condition allowed. There is currently a GDB.*" \
"Assign stop function to a breakpoint that has a condition"
"assign stop function to a breakpoint that has a condition"
delete_breakpoints
gdb_breakpoint [gdb_get_line_number "Break at multiply."]

View File

@ -179,7 +179,7 @@ gdb_py_test_multiple "expression completion command" \
gdb_test "complete expr_test bar\." \
"expr_test bar\.bc.*expr_test bar\.ij.*" \
"Test completion through complete command"
"test completion through complete command"
if { [readline_is_used] } {
set test "complete 'expr_test bar.i'"

View File

@ -62,7 +62,7 @@ gdb_py_test_silent_cmd "python fset = lt.source_lines()" \
"Get all source lines into a frozen set" 0
gdb_test "python print (sorted(fset))" \
"\\\[20, 21, 22, 24, 25, 28, 29, 30, 32, 33, 37, 39, 40, 42, 44, 45, 46\\\].*" \
"Test frozen set contains line numbers"
"test frozen set contains line numbers"
# Test gdb.Linetable.has_line ()
gdb_test "python print(lt.has_line(20))" \
@ -73,4 +73,4 @@ gdb_test "python print(lt.has_line(44))" \
"Test has_pcs at line 40"
gdb_test "python print(lt.has_line(10))" \
"False.*" \
"Test has_pcs at line 10"
"test has_pcs at line 10"

View File

@ -125,7 +125,7 @@ gdb_test "p g.mul<double>(2.0)" "From Python G<>::mul.*" \
"After: g.mul<double>(2.0)"
gdb_test "p g.mul<char>('a')" "From Python G<>::mul.*" \
gdb_test "p g_ptr->mul<char>('a')" "From Python G<>::mul.*" \
"After: g_ptr->mul<char>('a')"
"after: g_ptr->mul<char>('a')"
# Tests for 'disable/enable xmethod' command.
gdb_test_no_output "disable xmethod progspace G_methods" \

View File

@ -408,7 +408,7 @@ gdb_py_test_silent_cmd "set python print-stack none" \
"Test print-stack set setting to none" 1
gdb_test "show python print-stack" \
"The mode of Python stack printing on error is \"none\".*" \
"Test print-stack show setting to none"
"test print-stack show setting to none"
gdb_py_test_silent_cmd "set python print-stack message" \
"Test print-stack set setting to message" 1

View File

@ -38,7 +38,7 @@ if [supports_process_record] {
set end_location [gdb_get_line_number "end of main" ]
gdb_test "break $end_location" \
"Breakpoint $decimal at .*$srcfile, line $end_location\." \
"BP at end of main"
"breakpoint at end of main"
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"

View File

@ -39,7 +39,7 @@ if [supports_process_record] {
set breakloc [gdb_get_line_number "end of main" "$srcfile"]
gdb_test "break $breakloc" \
"Breakpoint $decimal at .*$srcfile, line $breakloc\." \
"BP at end of main"
"breakpoint at end of main"
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"

View File

@ -56,7 +56,7 @@ global decimal
gdb_test "break $end_of_main" \
"Breakpoint $decimal at .*$srcfile, line $end_of_main\." \
"BP at end of main"
"breakpoint at end of main"
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"

View File

@ -64,7 +64,7 @@ if [supports_process_record] {
gdb_test "break $endmain" \
"Breakpoint $decimal at .*$srcfile, line $endmain\." \
"BP at end of main"
"breakpoint at end of main"
gdb_test "continue" "Breakpoint .* end main .*" "run to end of main"

View File

@ -162,7 +162,7 @@ if [supports_process_record] {
set breakloc [gdb_get_line_number "end of main" "$srcfile"]
gdb_test "break $breakloc" \
"Breakpoint $decimal at .*$srcfile, line $breakloc\." \
"BP at end of main"
"breakpoint at end of main"
# Signal handlers must be disabled
gdb_test "handle all nostop noprint"

View File

@ -89,7 +89,7 @@ if [supports_process_record] {
set end_of_main [gdb_get_line_number "end of main" ]
gdb_test "break $end_of_main" \
"Breakpoint $decimal at .*$srcfile, line $end_of_main\." \
"BP at end of main"
"breakpoint at end of main"
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"

View File

@ -42,7 +42,7 @@ if [supports_process_record] {
set end_of_main [gdb_get_line_number "end of main" ]
gdb_test "break $end_of_main" \
"Breakpoint $decimal at .*$srcfile, line $end_of_main\." \
"BP at end of main"
"breakpoint at end of main"
# This can take awhile.
with_timeout_factor 20 {

View File

@ -46,7 +46,7 @@ if [supports_process_record] {
set end_of_main [gdb_get_line_number "set breakpoint 10a here" ]
gdb_test "break $end_of_main" \
"Breakpoint $decimal at .*$srcfile, line $end_of_main\." \
"BP at end of main"
"breakpoint at end of main"
# This can take awhile.
with_timeout_factor 20 {

View File

@ -39,7 +39,7 @@ if [supports_process_record] {
set end_location [gdb_get_line_number "end of main" ]
gdb_test "break $end_location" \
"Breakpoint $decimal at .*$srcfile, line $end_location\." \
"BP at end of main"
"breakpoint at end of main"
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"

View File

@ -38,7 +38,7 @@ gdb_continue_to_breakpoint "break-here" ".* break-here .*"
gdb_test "info threads" \
"\r\n\[ \t\]*Id\[ \t\]+Target\[ \t\]+Id\[ \t\]+Frame\[ \t\]*\r\n\\* 2 *Thread \[^\r\n\]* at \[^\r\n\]*" \
"Single thread has been left"
"single thread has been left"
# Test that ctrl-c works even if the leader has exited.

View File

@ -171,7 +171,7 @@ proc test_startup {} {
gdb_test "break thread2" "Breakpoint .* file .*$srcfile.*"
gdb_test "continue" \
"Continuing.*Breakpoint .*, thread2 \\(arg=0xdeadbeef\\).*at.*$srcfile.*" \
"Continue to creation of second thread"
"continue to creation of second thread"
# Extract the thread id number of thread 2 from "info threads" output.
gdb_test_multiple "info threads" "get thread 2 id" {

View File

@ -102,7 +102,7 @@ delete_breakpoints
# Prepare to create all the threads.
gdb_test "break thread_started" \
"Breakpoint \[0-9\]+ at .*: file .*${srcfile}, line .*" \
"Breakpoint on thread_started"
"breakpoint on thread_started"
# Move all threads to where they're supposed to be for testing.
for { set i 0 } { $i < $NR_THREADS } { incr i } {

View File

@ -212,7 +212,7 @@ gdb_test_no_output "set default-collect" \
gdb_test "tvariable \$tsv" \
"Trace state variable \\\$tsv created, with initial value 0." \
"Create a trace state variable"
"create a trace state variable"
gdb_trace_setactions "5.10a: set teval action for first tracepoint" \
"$trcpt1" \

View File

@ -153,7 +153,7 @@ proc test_upload_tsv { } {
gdb_test "tvariable \$tvar1" \
"Trace state variable \\\$tvar1 created, with initial value 0." \
"Create a trace state variable"
"create a trace state variable"
gdb_test "tvariable \$tvar2 = 45" \
"Trace state variable \\\$tvar2 created, with initial value 45." \

View File

@ -28,23 +28,23 @@ gdb_load $binfile
gdb_test "tvariable \$tvar1" \
"Trace state variable \\\$tvar1 created, with initial value 0." \
"Create a trace state variable"
"create a trace state variable"
gdb_test "tvariable \$tvar2 = 45" \
"Trace state variable \\\$tvar2 created, with initial value 45." \
"Create a trace state variable with initial value"
"create a trace state variable with initial value"
gdb_test "tvariable \$tvar2 = -92" \
"Trace state variable \\\$tvar2 now has initial value -92." \
"Change initial value of a trace state variable"
"change initial value of a trace state variable"
gdb_test "tvariable \$tvar3 = 2 + 3" \
"Trace state variable \\\$tvar3 created, with initial value 5." \
"Create a trace state variable with expression"
"create a trace state variable with expression"
gdb_test "tvariable \$tvar3 = 1234567000000" \
"Trace state variable \\\$tvar3 now has initial value 1234567000000." \
"Init trace state variable to a 64-bit value"
"init trace state variable to a 64-bit value"
gdb_test "tvariable $" \
"Must supply a non-empty variable name" \
@ -97,7 +97,7 @@ gdb_test "delete tvariable" \
gdb_test "info tvariables" \
"No trace state variables.*" \
"List tvariables after deleting all"
"list tvariables after deleting all"
# Now try running a trace.
@ -120,7 +120,7 @@ if { $trcpt1 <= 0 } then {
gdb_test "tvariable \$tvar5 = 15" \
"Trace state variable \\\$tvar5 created, with initial value 15." \
"Create a trace state variable tvar5"
"create a trace state variable tvar5"
gdb_trace_setactions "collect tsv for first tracepoint" \
"$trcpt1" \