Fix test names starting with uppercase using gdb_test_no_output

This fixes offender testcases that have test names starting with uppercase
when using gdb_test_no_output in a single-line construct.

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

	Fix test names starting with uppercase throughout the files.

	* gdb.base/charset.exp
	* gdb.base/eval.exp
	* gdb.base/multi-forks.exp
	* gdb.guile/scm-progspace.exp
	* gdb.opencl/datatypes.exp
	* gdb.python/py-block.exp
	* gdb.python/py-function.exp
	* gdb.python/py-symbol.exp
	* gdb.python/py-symtab.exp
	* gdb.python/py-xmethods.exp
	* gdb.reverse/break-precsave.exp
	* gdb.reverse/break-reverse.exp
	* gdb.reverse/consecutive-precsave.exp
	* gdb.reverse/consecutive-reverse.exp
	* gdb.reverse/finish-precsave.exp
	* gdb.reverse/finish-reverse-bkpt.exp
	* gdb.reverse/finish-reverse.exp
	* gdb.reverse/fstatat-reverse.exp
	* gdb.reverse/getresuid-reverse.exp
	* gdb.reverse/i386-precsave.exp
	* gdb.reverse/i386-reverse.exp
	* gdb.reverse/i386-sse-reverse.exp
	* gdb.reverse/i387-stack-reverse.exp
	* gdb.reverse/insn-reverse.exp
	* gdb.reverse/machinestate-precsave.exp
	* gdb.reverse/machinestate.exp
	* gdb.reverse/next-reverse-bkpt-over-sr.exp
	* gdb.reverse/pipe-reverse.exp
	* gdb.reverse/readv-reverse.exp
	* gdb.reverse/recvmsg-reverse.exp
	* gdb.reverse/rerun-prec.exp
	* gdb.reverse/s390-mvcle.exp
	* gdb.reverse/sigall-precsave.exp
	* gdb.reverse/sigall-reverse.exp
	* gdb.reverse/solib-precsave.exp
	* gdb.reverse/solib-reverse.exp
	* gdb.reverse/step-precsave.exp
	* gdb.reverse/step-reverse.exp
	* gdb.reverse/time-reverse.exp
	* gdb.reverse/until-precsave.exp
	* gdb.reverse/until-reverse.exp
	* gdb.reverse/waitpid-reverse.exp
	* gdb.reverse/watch-precsave.exp
	* gdb.reverse/watch-reverse.exp
This commit is contained in:
Luis Machado 2016-12-01 14:42:48 -06:00
parent cdc7edd7b1
commit 9f058c10ce
45 changed files with 98 additions and 49 deletions

View File

@ -1,3 +1,52 @@
2016-12-01 Luis Machado <lgustavo@codesourcery.com>
Fix test names starting with uppercase throughout the files.
* gdb.base/charset.exp
* gdb.base/eval.exp
* gdb.base/multi-forks.exp
* gdb.guile/scm-progspace.exp
* gdb.opencl/datatypes.exp
* gdb.python/py-block.exp
* gdb.python/py-function.exp
* gdb.python/py-symbol.exp
* gdb.python/py-symtab.exp
* gdb.python/py-xmethods.exp
* gdb.reverse/break-precsave.exp
* gdb.reverse/break-reverse.exp
* gdb.reverse/consecutive-precsave.exp
* gdb.reverse/consecutive-reverse.exp
* gdb.reverse/finish-precsave.exp
* gdb.reverse/finish-reverse-bkpt.exp
* gdb.reverse/finish-reverse.exp
* gdb.reverse/fstatat-reverse.exp
* gdb.reverse/getresuid-reverse.exp
* gdb.reverse/i386-precsave.exp
* gdb.reverse/i386-reverse.exp
* gdb.reverse/i386-sse-reverse.exp
* gdb.reverse/i387-stack-reverse.exp
* gdb.reverse/insn-reverse.exp
* gdb.reverse/machinestate-precsave.exp
* gdb.reverse/machinestate.exp
* gdb.reverse/next-reverse-bkpt-over-sr.exp
* gdb.reverse/pipe-reverse.exp
* gdb.reverse/readv-reverse.exp
* gdb.reverse/recvmsg-reverse.exp
* gdb.reverse/rerun-prec.exp
* gdb.reverse/s390-mvcle.exp
* gdb.reverse/sigall-precsave.exp
* gdb.reverse/sigall-reverse.exp
* gdb.reverse/solib-precsave.exp
* gdb.reverse/solib-reverse.exp
* gdb.reverse/step-precsave.exp
* gdb.reverse/step-reverse.exp
* gdb.reverse/time-reverse.exp
* gdb.reverse/until-precsave.exp
* gdb.reverse/until-reverse.exp
* gdb.reverse/waitpid-reverse.exp
* gdb.reverse/watch-precsave.exp
* gdb.reverse/watch-reverse.exp
2016-12-01 Luis Machado <lgustavo@codesourcery.com>
Fix test names starting with uppercase throughout the files.

View File

@ -591,7 +591,7 @@ gdb_test "print 'a' == 'a' || 'b' == 'b'" \
proc string_display { var_name set_prefix x_size x_type} {
gdb_test_no_output "set ${var_name} = ${set_prefix}\"Test String\\0with zeroes\"" "Assign ${var_name} with prefix ${set_prefix}"
gdb_test_no_output "set ${var_name} = ${set_prefix}\"Test String\\0with zeroes\"" "assign ${var_name} with prefix ${set_prefix}"
gdb_test "x /2${x_size}s ${var_name}" ".*\t${x_type}\"Test String\"\[\r\n\]+.*\t${x_type}\"with zeroes\"" "display String ${var_name} with x/${x_size}s"
}

View File

@ -16,7 +16,7 @@
gdb_exit
gdb_start
gdb_test_no_output "set \$a = 10" "Initialize \$a."
gdb_test_no_output "set \$a = 10" "initialize \$a."
gdb_test "eval \"echo %d\\n\", \$a++" "10" "first eval."
gdb_test "eval \"echo %d\\n\", \$a*2" "22" "second eval."

View File

@ -178,7 +178,7 @@ gdb_test "detach inferior 5" "Detaching .*" "detach 5"
#
for {set i 6} { $i <= 16} {incr i} {
gdb_test_no_output "kill inferior $i" "Kill $i"
gdb_test_no_output "kill inferior $i" "kill $i"
gdb_test "info inferior $i" "<null>.*" "did kill $i"
}

View File

@ -75,7 +75,7 @@ with_test_prefix "program unloaded" {
gdb_test "add-inferior" "Added inferior 2" "create new inferior"
gdb_test "inferior 2" ".*" "switch to new inferior"
gdb_test_no_output "remove-inferiors 1" "Remove first inferior"
gdb_test_no_output "remove-inferiors 1" "remove first inferior"
with_test_prefix "inferior removed" {
gdb_test "gu (print (progspace-valid? progspace))" "= #f"

View File

@ -36,7 +36,7 @@ gdb_exit
gdb_start
# Manually switch the language to opencl
gdb_test_no_output "set language opencl" "No prompt when setting the language to opencl"
gdb_test_no_output "set language opencl" "no prompt when setting the language to opencl"
# Check OpenCL data types (GDB)
gdb_test "whatis bool" "type = bool"
@ -194,8 +194,8 @@ gdb_test "whatis double16" "type = double16"
gdb_test "p sizeof(double16)" " = 128"
# Set the language back to the default: "auto; currently c"
gdb_test_no_output "set language c" "No prompt when setting the language to c"
gdb_test_no_output "set language auto" "No prompt when setting the language to auto"
gdb_test_no_output "set language c" "no prompt when setting the language to c"
gdb_test_no_output "set language auto" "no prompt when setting the language to auto"
# Load the OpenCL app
gdb_reinitialize_dir $srcdir/$subdir

View File

@ -55,9 +55,9 @@ gdb_test "python print (gblock.is_global)" "True" "is the global block"
gdb_test "python print (sblock.is_static)" "True" "is the static block"
# Move up superblock(s) until we reach function block_func.
gdb_test_no_output "python block = block.superblock" "Get superblock"
gdb_test_no_output "python block = block.superblock" "get superblock"
gdb_test "python print (block.function)" "None" "second anonymous block"
gdb_test_no_output "python block = block.superblock" "Get superblock 2"
gdb_test_no_output "python block = block.superblock" "get superblock 2"
gdb_test "python print (block.function)" "block_func" \
"Print superblock 2 function"

View File

@ -103,6 +103,6 @@ gdb_py_test_multiple "input command-calling function" \
"CallCommand ()" "" \
"end" ""
gdb_test_no_output "set var \$foo = \$call_command()" "Setting a value from a function which executes a command."
gdb_test_no_output "set var \$foo = \$call_command()" "setting a value from a function which executes a command."
# There was a bug where GDB would segfault in the second call, so try calling again.
gdb_test_no_output "set var \$foo = \$call_command()" "Setting a value from a function which executes a command, again."
gdb_test_no_output "set var \$foo = \$call_command()" "setting a value from a function which executes a command, again."

View File

@ -178,4 +178,4 @@ gdb_test "python print (a\[0\].is_valid())" "True" "test symbol validity"
delete_breakpoints
gdb_unload
gdb_test "python print (a\[0\].is_valid())" "False" "test symbol non-validity"
gdb_test_no_output "python a = None" "Test symbol destructor"
gdb_test_no_output "python a = None" "test symbol destructor"

View File

@ -82,5 +82,5 @@ gdb_unload
gdb_test "python print (sal.is_valid())" "False" "test sal.is_valid"
gdb_test "python print (symtab.is_valid())" "False" "test symtab.is_valid()"
gdb_test_no_output "python sal = None" "Test sal destructor"
gdb_test_no_output "python symtab = None" "Test symtab destructor"
gdb_test_no_output "python sal = None" "test sal destructor"
gdb_test_no_output "python symtab = None" "test symtab destructor"

View File

@ -152,7 +152,7 @@ gdb_test_no_output "disable xmethod progspace E_methods;method_int" \
"disable xmethod progspace E_methods;method_int"
gdb_test "info xmethod progspace E_methods;method_int" ".* \\\[disabled\\\]" \
"info xmethod xmethods E_methods;method_int"
gdb_test_no_output "disable xmethod progspace G_methods" "Disable G_methods 2"
gdb_test_no_output "disable xmethod progspace G_methods" "disable G_methods 2"
gdb_test "info xmethod progspace" ".*G_methods \\\[disabled\\\].*" \
"info xmethod progspace"

View File

@ -41,7 +41,7 @@ proc precsave_tests {} {
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
gdb_test "break $end_location" \

View File

@ -35,7 +35,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
gdb_test "break foo" \

View File

@ -32,7 +32,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
set end_location [gdb_get_line_number "end of main" ]

View File

@ -30,7 +30,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
gdb_breakpoint foo

View File

@ -31,7 +31,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
# Run until end, then save execution log.

View File

@ -36,7 +36,7 @@ if ![runto_main] then {
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
set breakloc [gdb_get_line_number "VOID FUNC" "$srcfile"]

View File

@ -30,7 +30,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
# Test finish from void func

View File

@ -33,7 +33,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
gdb_test "break marker2" \

View File

@ -33,7 +33,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
gdb_test "break marker2" \

View File

@ -48,7 +48,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
global hex

View File

@ -46,7 +46,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
global hex

View File

@ -48,7 +48,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
global hex

View File

@ -36,7 +36,7 @@ runto main
# Record to end of main
set location [gdb_get_line_number "END I387-FLOAT-REVERSE"]
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
gdb_test "until $location" ".*$srcfile:$location.*" \
"record to end of main"

View File

@ -71,7 +71,7 @@ proc test { func } {
}
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
# Registers contents before each forward single step.
set count 0

View File

@ -59,7 +59,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
gdb_test "break $endmain" \

View File

@ -57,7 +57,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
# Proceed to end of main

View File

@ -40,7 +40,7 @@ if ![runto_main] then {
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
set lineno [gdb_get_line_number "STEP INTO THIS CALL"]

View File

@ -33,7 +33,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
gdb_test "break marker2" \

View File

@ -33,7 +33,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
gdb_test "break marker2" \

View File

@ -33,7 +33,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
gdb_test "break marker2" \

View File

@ -25,7 +25,7 @@ if {[prepare_for_testing $testfile.exp $testfile [list $srcfile]]} {
# The bug is a regression in the sequence "run; record; run".
runto main
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
gdb_run_cmd
gdb_test_multiple "" "restarting inferior" {

View File

@ -36,7 +36,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
gdb_test "break marker1" \

View File

@ -154,7 +154,7 @@ runto gen_ABRT
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
# Run until end, then save execution log.

View File

@ -153,7 +153,7 @@ runto gen_ABRT
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
# The list of signals that the program generates, in the order they

View File

@ -83,7 +83,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
set end_of_main [gdb_get_line_number "end of main" ]

View File

@ -75,7 +75,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
#

View File

@ -36,7 +36,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
set end_of_main [gdb_get_line_number "end of main" ]

View File

@ -34,7 +34,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
# plain vanilla step/next (no count)

View File

@ -33,7 +33,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
gdb_test "break marker2" \

View File

@ -40,7 +40,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
set end_of_main [gdb_get_line_number "set breakpoint 10a here" ]

View File

@ -38,7 +38,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
# Verify that plain vanilla "until <location>" works.

View File

@ -35,7 +35,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
gdb_test "break marker2" \

View File

@ -33,7 +33,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
set end_location [gdb_get_line_number "end of main" ]

View File

@ -32,7 +32,7 @@ runto main
if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
gdb_test_no_output "record" "turn on process record"
}
# Test software watchpoints