diff options
author | Luis Machado <lgustavo@codesourcery.com> | 2016-12-01 14:41:23 -0600 |
---|---|---|
committer | Luis Machado <lgustavo@codesourcery.com> | 2016-12-01 14:41:23 -0600 |
commit | cdc7edd7b17dddd3558bd04d9b2fb5a73dc75f1c (patch) | |
tree | f55a5c186bddaa1303dd8bdd1fcb9d8ad7a0bbc4 /gdb/testsuite/gdb.go | |
parent | bc6c7af4a2f23c48a38139fc7e0ed2ac7b12bb69 (diff) | |
download | binutils-cdc7edd7b17dddd3558bd04d9b2fb5a73dc75f1c.zip binutils-cdc7edd7b17dddd3558bd04d9b2fb5a73dc75f1c.tar.gz binutils-cdc7edd7b17dddd3558bd04d9b2fb5a73dc75f1c.tar.bz2 |
Fix test names starting with uppercase using gdb_test on a single line.
Changes in v3:
Fixed incorrect substitutions.
This fixes offender testcases that have test names starting with uppercase
when using gdb_test 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.arch/i386-mpx-simple_segv.exp
* gdb.arch/i386-mpx.exp
* gdb.arch/i386-permbkpt.exp
* gdb.arch/pa-nullify.exp
* gdb.arch/powerpc-d128-regs.exp
* gdb.arch/vsx-regs.exp
* gdb.base/bfp-test.exp
* gdb.base/break.exp
* gdb.base/breakpoint-shadow.exp
* gdb.base/callfuncs.exp
* gdb.base/charset.exp
* gdb.base/commands.exp
* gdb.base/completion.exp
* gdb.base/dfp-test.exp
* gdb.base/echo.exp
* gdb.base/ending-run.exp
* gdb.base/eval.exp
* gdb.base/expand-psymtabs.exp
* gdb.base/float128.exp
* gdb.base/floatn.exp
* gdb.base/foll-exec-mode.exp
* gdb.base/gdb1056.exp
* gdb.base/gdb11531.exp
* gdb.base/kill-after-signal.exp
* gdb.base/multi-forks.exp
* gdb.base/overlays.exp
* gdb.base/pending.exp
* gdb.base/sepdebug.exp
* gdb.base/testenv.exp
* gdb.base/valgrind-db-attach.exp
* gdb.base/watch_thread_num.exp
* gdb.base/watchpoint-cond-gone.exp
* gdb.base/watchpoint.exp
* gdb.base/watchpoints.exp
* gdb.cp/arg-reference.exp
* gdb.cp/baseenum.exp
* gdb.cp/operator.exp
* gdb.cp/shadow.exp
* gdb.dwarf2/dw2-op-out-param.exp
* gdb.dwarf2/dw2-reg-undefined.exp
* gdb.go/chan.exp
* gdb.go/hello.exp
* gdb.go/integers.exp
* gdb.go/methods.exp
* gdb.go/package.exp
* gdb.guile/scm-parameter.exp
* gdb.guile/scm-progspace.exp
* gdb.guile/scm-value.exp
* gdb.mi/mi-pending.exp
* gdb.mi/user-selected-context-sync.exp
* gdb.multi/multi-attach.exp
* gdb.multi/tids.exp
* gdb.opt/clobbered-registers-O2.exp
* gdb.pascal/floats.exp
* gdb.pascal/integers.exp
* gdb.python/py-block.exp
* gdb.python/py-events.exp
* gdb.python/py-parameter.exp
* gdb.python/py-symbol.exp
* gdb.python/py-symtab.exp
* gdb.python/py-type.exp
* gdb.python/py-value.exp
* gdb.python/py-xmethods.exp
* gdb.python/python.exp
* gdb.reverse/break-precsave.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.server/ext-attach.exp
* gdb.server/ext-restart.exp
* gdb.server/ext-run.exp
* gdb.server/ext-wrapper.exp
* gdb.stabs/gdb11479.exp
* gdb.stabs/weird.exp
* gdb.threads/attach-many-short-lived-threads.exp
* gdb.threads/kill.exp
* gdb.threads/watchpoint-fork.exp
Diffstat (limited to 'gdb/testsuite/gdb.go')
-rw-r--r-- | gdb/testsuite/gdb.go/chan.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.go/hello.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.go/integers.exp | 16 | ||||
-rw-r--r-- | gdb/testsuite/gdb.go/methods.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.go/package.exp | 2 |
5 files changed, 14 insertions, 14 deletions
diff --git a/gdb/testsuite/gdb.go/chan.exp b/gdb/testsuite/gdb.go/chan.exp index 52b88e6..be903a8 100644 --- a/gdb/testsuite/gdb.go/chan.exp +++ b/gdb/testsuite/gdb.go/chan.exp @@ -40,7 +40,7 @@ if { [gdb_breakpoint ${srcfile}:${bp_location1}] } { pass "setting breakpoint 1" } -gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "Going to first breakpoint" +gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "going to first breakpoint" gdb_test_no_output "disable" @@ -48,4 +48,4 @@ if { [gdb_breakpoint ${srcfile}:${bp_location2}] } { pass "setting breakpoint 2" } -gdb_test "cont" "Breakpoint .*:${bp_location2}.*" "Going to second breakpoint" +gdb_test "cont" "Breakpoint .*:${bp_location2}.*" "going to second breakpoint" diff --git a/gdb/testsuite/gdb.go/hello.exp b/gdb/testsuite/gdb.go/hello.exp index 3efb78b..666567c 100644 --- a/gdb/testsuite/gdb.go/hello.exp +++ b/gdb/testsuite/gdb.go/hello.exp @@ -45,7 +45,7 @@ if { [gdb_breakpoint ${srcfile}:${bp_location1}] } { pass "setting breakpoint 1" } -gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "Going to first breakpoint" +gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "going to first breakpoint" gdb_test "print st" \ ".* = $hex \"Hello, world!\"" \ diff --git a/gdb/testsuite/gdb.go/integers.exp b/gdb/testsuite/gdb.go/integers.exp index b823f5a..dd28f6d 100644 --- a/gdb/testsuite/gdb.go/integers.exp +++ b/gdb/testsuite/gdb.go/integers.exp @@ -39,20 +39,20 @@ if { [gdb_breakpoint ${srcfile}:${bp_location1}] } { pass "setting breakpoint 1" } -gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "Going to first breakpoint" +gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "going to first breakpoint" -gdb_test "print i" ".* = 0" "Print i before assigned to 1" +gdb_test "print i" ".* = 0" "print i before assigned to 1" -gdb_test "next" "i = 1" "Next to 'i = 1' line" -gdb_test "next" "j = 2" "Next to 'j = 2' line" +gdb_test "next" "i = 1" "next to 'i = 1' line" +gdb_test "next" "j = 2" "next to 'j = 2' line" # At that point, # i should be equal to 1 gdb_test "print i" " = 1" # but j should still be equal to zero -gdb_test "print j" " = 0" "Test j value before assignment" +gdb_test "print j" " = 0" "test j value before assignment" -gdb_test "next" "k = 3" "Next to 'k = 3' line" -gdb_test "next" "l = k" "Next to 'l = k' line" +gdb_test "next" "k = 3" "next to 'k = 3' line" +gdb_test "next" "l = k" "next to 'l = k' line" #j should be equal to 2 gdb_test "print j" " = 2" @@ -101,7 +101,7 @@ gdb_test "print i+10*j+100*k" " = 321" gdb_test " print (i + 5) * (j + 7)" " = 54" gdb_test "set var i = 2" " = 2" -gdb_test "print i" " = 2" "Testing new i value" +gdb_test "print i" " = 2" "testing new i value" if { [gdb_breakpoint ${srcfile}:${bp_location2}] } { pass "setting breakpoint 2" diff --git a/gdb/testsuite/gdb.go/methods.exp b/gdb/testsuite/gdb.go/methods.exp index ea6a894..cb7f55a 100644 --- a/gdb/testsuite/gdb.go/methods.exp +++ b/gdb/testsuite/gdb.go/methods.exp @@ -40,10 +40,10 @@ if { [gdb_breakpoint ${bp_location1}] } { pass "setting breakpoint 1" } setup_xfail "*-*-*" ;# mangling issues IIRC -gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "Going to first breakpoint" +gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "going to first breakpoint" if { [gdb_breakpoint ${bp_location2}] } { pass "setting breakpoint 2" } setup_xfail "*-*-*" ;# mangling issues IIRC -gdb_test "cont" "Breakpoint .*:${bp_location2_regexp}.*" "Going to second breakpoint" +gdb_test "cont" "Breakpoint .*:${bp_location2_regexp}.*" "going to second breakpoint" diff --git a/gdb/testsuite/gdb.go/package.exp b/gdb/testsuite/gdb.go/package.exp index 1d09f1c..fc5f85d 100644 --- a/gdb/testsuite/gdb.go/package.exp +++ b/gdb/testsuite/gdb.go/package.exp @@ -46,4 +46,4 @@ set bp_location1_regexp {package2[.]Foo.*package2[.]go:} if { [gdb_breakpoint ${bp_location1}] } { pass "setting breakpoint 1" } -gdb_test "cont" "Breakpoint .*${bp_location1_regexp}.*" "Going to first breakpoint" +gdb_test "cont" "Breakpoint .*${bp_location1_regexp}.*" "going to first breakpoint" |