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.pascal | |
parent | bc6c7af4a2f23c48a38139fc7e0ed2ac7b12bb69 (diff) | |
download | gdb-cdc7edd7b17dddd3558bd04d9b2fb5a73dc75f1c.zip gdb-cdc7edd7b17dddd3558bd04d9b2fb5a73dc75f1c.tar.gz gdb-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.pascal')
-rw-r--r-- | gdb/testsuite/gdb.pascal/floats.exp | 28 | ||||
-rw-r--r-- | gdb/testsuite/gdb.pascal/integers.exp | 16 |
2 files changed, 22 insertions, 22 deletions
diff --git a/gdb/testsuite/gdb.pascal/floats.exp b/gdb/testsuite/gdb.pascal/floats.exp index 43065ed..bd27947 100644 --- a/gdb/testsuite/gdb.pascal/floats.exp +++ b/gdb/testsuite/gdb.pascal/floats.exp @@ -42,15 +42,15 @@ if { [gdb_start_cmd] < 0 } { gdb_test "" ".* at .*${srcfile}.*" "start" -gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "Going to first breakpoint" -gdb_test "print r" ".* = 0" "Print r before assigned to 1.25" +gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "going to first breakpoint" +gdb_test "print r" ".* = 0" "print r before assigned to 1.25" -gdb_test "next" "r := 1\\.25;" "Next to 'r := 1.25' line" -gdb_test "next" "s := 2\\.2;" "Next to 's := 2.2' line" -gdb_test "next" "t := -3\\.2;" "Next to 't := -3.2' line" -gdb_test "next" "u := 78\\.3;" "Next to 'u := 78.3' line" -gdb_test "next" "l := 1;" "Next to 'l := 1' line" -gdb_test "next" "i := 1;" "Next to 'i := 1' line" +gdb_test "next" "r := 1\\.25;" "next to 'r := 1.25' line" +gdb_test "next" "s := 2\\.2;" "next to 's := 2.2' line" +gdb_test "next" "t := -3\\.2;" "next to 't := -3.2' line" +gdb_test "next" "u := 78\\.3;" "next to 'u := 78.3' line" +gdb_test "next" "l := 1;" "next to 'l := 1' line" +gdb_test "next" "i := 1;" "next to 'i := 1' line" # At that point, # r should be equal to 1.25 @@ -113,16 +113,16 @@ gdb_test "print 35 / 2" " = 17\\.(499.*|5|500.*)" # 'set r' does not work, as there are set sub-commands starting with 'r' # Thus we need to use 'set var r' gdb_test "set var r := 2.56" " := 2\\.56" -gdb_test "print r" " = 2\\.5(599.*|6|600.*)" "Testing new r value" +gdb_test "print r" " = 2\\.5(599.*|6|600.*)" "testing new r value" gdb_test "cont" \ "Breakpoint .*:${bp_location2}.*" \ "Going to second breakpoint" -gdb_test "next" "r := cos\\(u\\);" "Advance to 'r := cos(u)' line" -gdb_test "print u" " = 3\\.14159.*" "Test pi value" -gdb_test "next" "s := sin\\(u\\);" "Advance to 's := sin(u)' line" -gdb_test "print r" " = -1" "Test cos(pi) is equal to -1" -gdb_test "next" "" "Go past 's := sin(u)' line" +gdb_test "next" "r := cos\\(u\\);" "advance to 'r := cos(u)' line" +gdb_test "print u" " = 3\\.14159.*" "test pi value" +gdb_test "next" "s := sin\\(u\\);" "advance to 's := sin(u)' line" +gdb_test "print r" " = -1" "test cos(pi) is equal to -1" +gdb_test "next" "" "go past 's := sin(u)' line" set msg "Test sin(pi) is equal to 0" diff --git a/gdb/testsuite/gdb.pascal/integers.exp b/gdb/testsuite/gdb.pascal/integers.exp index ec9739c..4e62745 100644 --- a/gdb/testsuite/gdb.pascal/integers.exp +++ b/gdb/testsuite/gdb.pascal/integers.exp @@ -40,12 +40,12 @@ if { [gdb_start_cmd] < 0 } { gdb_test "" ".* at .*${srcfile}.*" "start" -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" @@ -53,10 +53,10 @@ gdb_test "print i" " = 1" if { $pascal_compiler_is_gpc } { setup_xfail *-*-* } -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" @@ -110,7 +110,7 @@ gdb_test " print (i + 5) * (j + 7)" " = 54" # 'set i' does not work, as there are set sub-commands starting with 'i' # Thus we need to use 'set var i' 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" gdb_test "cont" \ "Breakpoint .*:${bp_location2}.*" \ |