diff options
author | Pedro Alves <palves@redhat.com> | 2011-05-16 13:56:41 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-05-16 13:56:41 +0000 |
commit | 3b48433dfbab56ba40489df8a778df6c845bc021 (patch) | |
tree | 54080e8aca169e97e95cbcb7d9ab8d7837679611 /gdb/testsuite | |
parent | e3b66208d10d41c18adf808811be92dcf846f9d4 (diff) | |
download | gdb-3b48433dfbab56ba40489df8a778df6c845bc021.zip gdb-3b48433dfbab56ba40489df8a778df6c845bc021.tar.gz gdb-3b48433dfbab56ba40489df8a778df6c845bc021.tar.bz2 |
2011-05-16 Pedro Alves <pedro@codesourcery.com>
gdb/testsuite/
* gdb.ada/start.exp: Call untested with the correct test filename.
* gdb.arch/i386-bp_permanent.exp: Call untested with the correct
test filename. Make the test's binary unique.
* gdb.arch/i386-signal.exp: Call untested with the correct test
filename.
* gdb.arch/i386-size-overlap.exp: Ditto.
* gdb.arch/Makefile.in (EXECUTABLES): Update.
* gdb.base/gcore-buffer-overflow.exp: Ditto.
* gdb.cp/call-c.exp: Ditto.
* gdb.mi/mi-reverse.exp: Call untested with the correct test
filename. Make the test's binary unique.
* gdb.mi/Makefile.in (EXECUTABLES): Update.
* gdb.python/py-mi.exp: Ditto.
* gdb.python/Makefile.in (EXECUTABLES): Update.
* gdb.reverse/i386-precsave.exp: Ditto.
* gdb.reverse/i387-env-reverse.exp: Call untested with the correct
test filename.
* gdb.reverse/i387-stack-reverse.exp: Ditto.
* gdb.reverse/sigall-precsave.exp: Ditto. Make the test's binary
unique.
* gdb.reverse/sigall-reverse.exp: Call untested with the correct
test filename.
* gdb.reverse/Makefile.in (EXECUTABLES): Update.
* gdb.trace/tfile.exp: Ditto.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 27 | ||||
-rw-r--r-- | gdb/testsuite/gdb.ada/start.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/Makefile.in | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-bp_permanent.exp | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-signal.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.arch/i386-size-overlap.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/gcore-buffer-overflow.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/call-c.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/Makefile.in | 24 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-reverse.exp | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/Makefile.in | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-mi.exp | 21 | ||||
-rw-r--r-- | gdb/testsuite/gdb.reverse/Makefile.in | 3 | ||||
-rw-r--r-- | gdb/testsuite/gdb.reverse/i386-precsave.exp | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.reverse/i387-env-reverse.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.reverse/i387-stack-reverse.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.reverse/sigall-precsave.exp | 8 | ||||
-rw-r--r-- | gdb/testsuite/gdb.reverse/sigall-reverse.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.trace/tfile.exp | 2 |
19 files changed, 78 insertions, 47 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ba3c9f3..22f0fd4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,30 @@ +2011-05-16 Pedro Alves <pedro@codesourcery.com> + + * gdb.ada/start.exp: Call untested with the correct test filename. + * gdb.arch/i386-bp_permanent.exp: Call untested with the correct + test filename. Make the test's binary unique. + * gdb.arch/i386-signal.exp: Call untested with the correct test + filename. + * gdb.arch/i386-size-overlap.exp: Ditto. + * gdb.arch/Makefile.in (EXECUTABLES): Update. + * gdb.base/gcore-buffer-overflow.exp: Ditto. + * gdb.cp/call-c.exp: Ditto. + * gdb.mi/mi-reverse.exp: Call untested with the correct test + filename. Make the test's binary unique. + * gdb.mi/Makefile.in (EXECUTABLES): Update. + * gdb.python/py-mi.exp: Ditto. + * gdb.python/Makefile.in (EXECUTABLES): Update. + * gdb.reverse/i386-precsave.exp: Ditto. + * gdb.reverse/i387-env-reverse.exp: Call untested with the correct + test filename. + * gdb.reverse/i387-stack-reverse.exp: Ditto. + * gdb.reverse/sigall-precsave.exp: Ditto. Make the test's binary + unique. + * gdb.reverse/sigall-reverse.exp: Call untested with the correct + test filename. + * gdb.reverse/Makefile.in (EXECUTABLES): Update. + * gdb.trace/tfile.exp: Ditto. + 2011-05-14 Yao Qi <yao@codesourcery.com> * gdb.trace/tfile.c(add_memory_block): Store address in unsigned diff --git a/gdb/testsuite/gdb.ada/start.exp b/gdb/testsuite/gdb.ada/start.exp index e14ecde..2e16bad 100644 --- a/gdb/testsuite/gdb.ada/start.exp +++ b/gdb/testsuite/gdb.ada/start.exp @@ -24,7 +24,7 @@ if { [skip_ada_tests] } { return -1 } # This testcase verifies the behavior of the `start' command, which # does not work when we use the gdb stub... if [target_info exists use_gdb_stub] { - untested exec_changed.exp + untested start.exp return } diff --git a/gdb/testsuite/gdb.arch/Makefile.in b/gdb/testsuite/gdb.arch/Makefile.in index b30af2b..a86edaf 100644 --- a/gdb/testsuite/gdb.arch/Makefile.in +++ b/gdb/testsuite/gdb.arch/Makefile.in @@ -2,8 +2,8 @@ VPATH = @srcdir@ srcdir = @srcdir@ EXECUTABLES = altivec-abi altivec-regs amd64-byte amd64-disp-step \ - amd64-dword amd64-i386-address amd64-word i386-permbkpt \ - i386-signal i386-sse + amd64-dword amd64-i386-address amd64-word i386-bp_permanent \ + i386-permbkpt i386-avx i386-signal i386-sse all info install-info dvi install uninstall installcheck check: @echo "Nothing to be done for $@..." diff --git a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp index d099745..3b39d78 100644 --- a/gdb/testsuite/gdb.arch/i386-bp_permanent.exp +++ b/gdb/testsuite/gdb.arch/i386-bp_permanent.exp @@ -27,8 +27,8 @@ if {(![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"]) || ![is_ilp32_target] } return } -set testfile "i386-prologue" -set srcfile ${testfile}.c +set testfile "i386-bp_permanent" +set srcfile i386-prologue.c set binfile ${objdir}/${subdir}/${testfile} # some targets have leading underscores on assembly symbols. @@ -41,7 +41,7 @@ if [istarget "i?86-*-cygwin*"] then { # Don't use "debug", so that we don't have line information for the assembly # fragments. if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list $additional_flags]] != "" } { - untested i386-prologue.exp + untested ${testfile}.exp return -1 } diff --git a/gdb/testsuite/gdb.arch/i386-signal.exp b/gdb/testsuite/gdb.arch/i386-signal.exp index 66f3117..5a9f003 100644 --- a/gdb/testsuite/gdb.arch/i386-signal.exp +++ b/gdb/testsuite/gdb.arch/i386-signal.exp @@ -26,7 +26,7 @@ set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ executable { debug }] != "" } { - untested i386-sigframe.exp + untested ${testfile}.exp return -1 } diff --git a/gdb/testsuite/gdb.arch/i386-size-overlap.exp b/gdb/testsuite/gdb.arch/i386-size-overlap.exp index c12befb..96ec641 100644 --- a/gdb/testsuite/gdb.arch/i386-size-overlap.exp +++ b/gdb/testsuite/gdb.arch/i386-size-overlap.exp @@ -39,7 +39,7 @@ if [istarget "i?86-*-cygwin*"] then { if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ executable [list debug $additional_flags]] != "" } { - untested "i386-size" + untested ${testfile}.exp return -1 } diff --git a/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp b/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp index 7b9b990..bd101a7 100644 --- a/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp +++ b/gdb/testsuite/gdb.base/gcore-buffer-overflow.exp @@ -28,7 +28,7 @@ set pattern 0123456789012345678901234567890123456789012345678901234567890123456 set binfile ${objdir}/${subdir}/${testfile}-${pattern} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - untested gcore.exp + untested ${testfile}.exp return -1 } diff --git a/gdb/testsuite/gdb.cp/call-c.exp b/gdb/testsuite/gdb.cp/call-c.exp index 3479c73..dbcf380 100644 --- a/gdb/testsuite/gdb.cp/call-c.exp +++ b/gdb/testsuite/gdb.cp/call-c.exp @@ -30,7 +30,7 @@ set objfilecpp ${objdir}/${subdir}/${testfile}.o if {[gdb_compile "${srcfilec}" "${objfilec}" object {debug}] != "" || [gdb_compile "${srcfilecpp}" "${objfilecpp}" object {c++ debug}] != "" || [gdb_compile "${objfilecpp} ${objfilec}" "${binfile}" executable {c++ debug}] != ""} { - untested hang.exp + untested ${testfile}.exp return -1 } diff --git a/gdb/testsuite/gdb.mi/Makefile.in b/gdb/testsuite/gdb.mi/Makefile.in index be0526d..e8754f4 100644 --- a/gdb/testsuite/gdb.mi/Makefile.in +++ b/gdb/testsuite/gdb.mi/Makefile.in @@ -1,17 +1,19 @@ VPATH = @srcdir@ srcdir = @srcdir@ -PROGS = basics c_variable cpp_variable var-cmd dw2-ref-missing-frame \ - gdb669-pthreads gdb701 gdb792 mi-async mi-basics mi-break \ - mi-cli mi-console mi-disassemble mi-eval mi-file mi-file-transfer \ - mi-non-stop mi-non-stop-exit mi-ns-stale-regcache mi-nsintrall \ - mi-nsmoribund mi-nsthrexec mi-pending mi-pthreads mi-read-memory \ - mi-regs mi-return mi-simplerun mi-stack mi-stepi mi-syn-frame \ - mi-var-block mi-var-child mi-var-cmd mi-var-cp mi-var-display \ - mi-var-invalidate mi-var-invalidate_bis mi-watch mi2-basics \ - mi2-break mi2-cli mi2-disassemble mi2-eval mi2-file mi2-pthreads \ - mi2-regs mi2-return mi2-simplerun mi2-stepi mi2-var-block \ - mi2-var-child mi2-var-cmd mi2-var-display mi2-watch until +PROGS = basics c_variable cpp_variable var-cmd dw2-ref-missing-frame \ + gdb669-pthreads gdb701 gdb792 mi-async mi-basics mi-break \ + mi-cli mi-console mi-disassemble mi-eval mi-file \ + mi-file-transfer mi-non-stop mi-non-stop-exit \ + mi-ns-stale-regcache mi-nsintrall mi-nsmoribund mi-nsthrexec \ + mi-pending mi-pthreads mi-read-memory mi-regs mi-return \ + mi-reverse mi-simplerun mi-stack mi-stepi mi-syn-frame \ + mi-var-block mi-var-child mi-var-cmd mi-var-cp mi-var-display \ + mi-var-invalidate mi-var-invalidate_bis mi-watch mi2-basics \ + mi2-break mi2-cli mi2-disassemble mi2-eval mi2-file \ + mi2-pthreads mi2-regs mi2-return mi2-simplerun mi2-stepi \ + mi2-var-block mi2-var-child mi2-var-cmd mi2-var-display \ + mi2-watch until MISCELLANEOUS = mi-pendshr.sl diff --git a/gdb/testsuite/gdb.mi/mi-reverse.exp b/gdb/testsuite/gdb.mi/mi-reverse.exp index d6c4a62..3805544 100644 --- a/gdb/testsuite/gdb.mi/mi-reverse.exp +++ b/gdb/testsuite/gdb.mi/mi-reverse.exp @@ -39,11 +39,11 @@ if [mi_gdb_start] { continue
}
-set testfile "basics"
-set srcfile ${testfile}.c
+set testfile mi-reverse
+set srcfile basics.c
set binfile ${objdir}/${subdir}/mi2-reverse
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
- untested mi2-reverse.exp
+ untested ${testfile}.exp
return -1
}
diff --git a/gdb/testsuite/gdb.python/Makefile.in b/gdb/testsuite/gdb.python/Makefile.in index 5b2b7b0..9c98db9 100644 --- a/gdb/testsuite/gdb.python/Makefile.in +++ b/gdb/testsuite/gdb.python/Makefile.in @@ -4,7 +4,7 @@ srcdir = @srcdir@ EXECUTABLES = py-type py-value py-prettyprint py-template py-block \ py-symbol py-mi py-breakpoint py-inferior py-infthread \ py-shared python lib-types py-events py-evthreads py-frame \ - py-pp-maint py-progspace py-section-script py-objfile + py-mi py-pp-maint py-progspace py-section-script py-objfile MISCELLANEOUS = py-shared-sl.sl diff --git a/gdb/testsuite/gdb.python/py-mi.exp b/gdb/testsuite/gdb.python/py-mi.exp index 37359e9..2e4d12b 100644 --- a/gdb/testsuite/gdb.python/py-mi.exp +++ b/gdb/testsuite/gdb.python/py-mi.exp @@ -24,11 +24,12 @@ if [mi_gdb_start] { continue } -set testfile "py-prettyprint" -set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/py-mi +set testfile "py-mi" +set srcfile py-prettyprint.c +set binfile ${objdir}/${subdir}/${testfile} +set pyfile py-prettyprint.py if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } { - untested mi2-var-child.exp + untested ${testfile}.exp return -1 } @@ -43,11 +44,11 @@ if {[lsearch -exact [mi_get_features] python] < 0} { mi_runto main -set remote_python_file [remote_download host ${srcdir}/${subdir}/${testfile}.py] +set remote_python_file [remote_download host ${srcdir}/${subdir}/${pyfile}] mi_gdb_test "python execfile ('${remote_python_file}')" "" -mi_continue_to_line [gdb_get_line_number {MI breakpoint here} ${testfile}.c] \ +mi_continue_to_line [gdb_get_line_number {MI breakpoint here} ${srcfile}] \ "step to breakpoint" mi_create_dynamic_varobj container c \ @@ -221,7 +222,7 @@ mi_varobj_update_dynamic container2 \ } {} {} mi_continue_to_line \ - [gdb_get_line_number {MI outer breakpoint here} ${testfile}.c] \ + [gdb_get_line_number {MI outer breakpoint here} ${srcfile}] \ "step to outer breakpoint" mi_create_dynamic_varobj outer outer \ @@ -244,14 +245,14 @@ mi_gdb_test "-var-update outer" \ "update after updating element of outer" mi_continue_to_line \ - [gdb_get_line_number {Another MI breakpoint} ${testfile}.c] \ + [gdb_get_line_number {Another MI breakpoint} ${srcfile}] \ "step to second breakpoint" mi_varobj_update_with_type_change container int 0 "update after type change" mi_continue_to_line \ - [gdb_get_line_number {break to inspect struct and union} ${testfile}.c] \ + [gdb_get_line_number {break to inspect struct and union} ${srcfile}] \ "step to outer breakpoint" mi_create_dynamic_varobj nscont nstype \ @@ -305,7 +306,7 @@ if {[lsearch -exact [mi_get_features] python] < 0} { mi_runto main mi_continue_to_line \ - [gdb_get_line_number {break to inspect struct and union} ${testfile}.c] \ + [gdb_get_line_number {break to inspect struct and union} ${srcfile}] \ "step to breakpoint" # Test python/12531. Install visualizer on a cplus_fake_child. diff --git a/gdb/testsuite/gdb.reverse/Makefile.in b/gdb/testsuite/gdb.reverse/Makefile.in index bbde519..f5c4ff6 100644 --- a/gdb/testsuite/gdb.reverse/Makefile.in +++ b/gdb/testsuite/gdb.reverse/Makefile.in @@ -2,8 +2,9 @@ VPATH = @srcdir@ srcdir = @srcdir@ EXECUTABLES = break-reverse consecutive-reverse finish-reverse \ + i386-precsave i386-reverse i386-sse-reverse \ machinestate solib-reverse step-reverse until-reverse \ - watch-reverse i386-reverse + watch-reverse sigall-reverse sigall-precsave MISCELLANEOUS = diff --git a/gdb/testsuite/gdb.reverse/i386-precsave.exp b/gdb/testsuite/gdb.reverse/i386-precsave.exp index 2b437b1..bb3feca 100644 --- a/gdb/testsuite/gdb.reverse/i386-precsave.exp +++ b/gdb/testsuite/gdb.reverse/i386-precsave.exp @@ -34,8 +34,8 @@ if ![istarget "i?86-*linux*"] then { return } -set testfile "i386-reverse" -set srcfile ${testfile}.c +set testfile "i386-precsave" +set srcfile i386-reverse.c set binfile ${objdir}/${subdir}/${testfile} # some targets have leading underscores on assembly symbols. @@ -46,7 +46,7 @@ if [istarget "i?86-*-cygwin*"] then { } if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } { - untested i386-reverse + untested ${testfile}.exp return -1 } diff --git a/gdb/testsuite/gdb.reverse/i387-env-reverse.exp b/gdb/testsuite/gdb.reverse/i387-env-reverse.exp index caf524a..57b4346 100644 --- a/gdb/testsuite/gdb.reverse/i387-env-reverse.exp +++ b/gdb/testsuite/gdb.reverse/i387-env-reverse.exp @@ -37,7 +37,7 @@ if [istarget "i?86-*-cygwin*"] then { } if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } { - untested i387-float-reverse + untested ${testfile}.exp return -1 } diff --git a/gdb/testsuite/gdb.reverse/i387-stack-reverse.exp b/gdb/testsuite/gdb.reverse/i387-stack-reverse.exp index eaa8e04..14b1b7e 100644 --- a/gdb/testsuite/gdb.reverse/i387-stack-reverse.exp +++ b/gdb/testsuite/gdb.reverse/i387-stack-reverse.exp @@ -37,7 +37,7 @@ if [istarget "i?86-*-cygwin*"] then { } if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } { - untested i387-float-reverse + untested ${testfile}.exp return -1 } diff --git a/gdb/testsuite/gdb.reverse/sigall-precsave.exp b/gdb/testsuite/gdb.reverse/sigall-precsave.exp index 1919028..94144d3 100644 --- a/gdb/testsuite/gdb.reverse/sigall-precsave.exp +++ b/gdb/testsuite/gdb.reverse/sigall-precsave.exp @@ -14,7 +14,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. if [target_info exists gdb,nosignals] { - verbose "Skipping sigall-reverse.exp because of nosignals." + verbose "Skipping sigall-precsave.exp because of nosignals." return } @@ -31,11 +31,11 @@ gdb_exit gdb_start gdb_reinitialize_dir $srcdir/$subdir -set testfile sigall-reverse -set srcfile ${testfile}.c +set testfile sigall-precsave +set srcfile sigall-reverse.c set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - untested sigall.exp + untested ${testfile}.exp return -1 } diff --git a/gdb/testsuite/gdb.reverse/sigall-reverse.exp b/gdb/testsuite/gdb.reverse/sigall-reverse.exp index fac353e..d152965 100644 --- a/gdb/testsuite/gdb.reverse/sigall-reverse.exp +++ b/gdb/testsuite/gdb.reverse/sigall-reverse.exp @@ -35,7 +35,7 @@ set testfile sigall-reverse set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - untested sigall.exp + untested ${testfile}.exp return -1 } diff --git a/gdb/testsuite/gdb.trace/tfile.exp b/gdb/testsuite/gdb.trace/tfile.exp index 0614423..37a7f42 100644 --- a/gdb/testsuite/gdb.trace/tfile.exp +++ b/gdb/testsuite/gdb.trace/tfile.exp @@ -39,7 +39,7 @@ set srcfile ${testfile}.c set binfile $objdir/$subdir/$testfile if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ executable {debug nowarnings}] != "" } { - untested file.exp + untested ${testfile}.exp return -1 } gdb_reinitialize_dir $srcdir/$subdir |