* gdb.stabs/weird.exp: Remove directory-checking code. Use
standard_output_file. * gdb.stabs/exclfwd.exp: Use standard_testfile, prepare_for_testing. Remove directory-checking code.
This commit is contained in:
parent
6fea9e186c
commit
481fc10041
|
@ -1,3 +1,10 @@
|
||||||
|
2012-06-26 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* gdb.stabs/weird.exp: Remove directory-checking code. Use
|
||||||
|
standard_output_file.
|
||||||
|
* gdb.stabs/exclfwd.exp: Use standard_testfile,
|
||||||
|
prepare_for_testing. Remove directory-checking code.
|
||||||
|
|
||||||
2012-06-25 Tom Tromey <tromey@redhat.com>
|
2012-06-25 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* gdb.multi/watchpoint-multi.exp: Use standard_testfile.
|
* gdb.multi/watchpoint-multi.exp: Use standard_testfile.
|
||||||
|
|
|
@ -16,36 +16,17 @@
|
||||||
# Please email any bugs, comments, and/or additions to this file to:
|
# Please email any bugs, comments, and/or additions to this file to:
|
||||||
# bug-gdb@gnu.org
|
# bug-gdb@gnu.org
|
||||||
|
|
||||||
# If the test directory was not created by configure then skip
|
|
||||||
# this test.
|
|
||||||
if ![file isdirectory ${objdir}/${subdir}] then {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# test running programs
|
# test running programs
|
||||||
#
|
#
|
||||||
|
|
||||||
set testfile exclfwd
|
standard_testfile exclfwd1.c exclfwd2.c
|
||||||
set binfile ${objdir}/${subdir}/${testfile}
|
|
||||||
|
|
||||||
foreach file {exclfwd1 exclfwd2} {
|
if {[prepare_for_testing $testfile.exp $testfile \
|
||||||
if {[gdb_compile "${srcdir}/${subdir}/${file}.c" "${file}.o" object {debug}] != ""} {
|
[list $srcfile $srcfile2] debug]} {
|
||||||
untested exclfwd.exp
|
return -1
|
||||||
return -1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if {[gdb_compile "exclfwd1.o exclfwd2.o" ${binfile} executable {debug}] != "" } {
|
|
||||||
untested exclfwd.exp
|
|
||||||
return -1
|
|
||||||
}
|
|
||||||
|
|
||||||
gdb_exit
|
|
||||||
gdb_start
|
|
||||||
gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
gdb_load ${binfile}
|
|
||||||
|
|
||||||
if ![runto_main] then {
|
if ![runto_main] then {
|
||||||
perror "couldn't run to breakpoint"
|
perror "couldn't run to breakpoint"
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -17,16 +17,10 @@
|
||||||
# Test that GDB properly ignores invalid stabs.
|
# Test that GDB properly ignores invalid stabs.
|
||||||
# Also test that GDB can debug a .o file, and that it doesn't mind
|
# Also test that GDB can debug a .o file, and that it doesn't mind
|
||||||
# a file that's more minimal than what a compiler normally puts out.
|
# a file that's more minimal than what a compiler normally puts out.
|
||||||
# If the test directory was not created by configure then skip
|
|
||||||
# this test.
|
|
||||||
if ![file isdirectory ${objdir}/${subdir}] then {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
set testfile weird
|
set testfile weird
|
||||||
set srcfile ${objdir}/${subdir}/weird.s
|
set srcfile [standard_output_file weird.s]
|
||||||
set binfile ${objdir}/${subdir}/weirdx.o
|
set binfile [standard_output_file weirdx.o]
|
||||||
|
|
||||||
if { [ get_compiler_info ] } {
|
if { [ get_compiler_info ] } {
|
||||||
return -1
|
return -1
|
||||||
|
|
Loading…
Reference in New Issue