* gdb.python/py-section-script.exp: Skip test if no Python support.
This commit is contained in:
parent
176400c353
commit
ce77046a68
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-03-13 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* gdb.python/py-section-script.exp: Skip test if no Python support.
|
||||
|
||||
2011-03-12 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* gdb.base/solib-weak.exp: Allow "." prefix for ppc64.
|
||||
|
|
|
@ -41,14 +41,17 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debu
|
|||
return -1
|
||||
}
|
||||
|
||||
# Start with a fresh gdb.
|
||||
gdb_exit
|
||||
gdb_start
|
||||
|
||||
# Skip all tests if Python scripting is not enabled.
|
||||
if { [skip_python_tests] } { continue }
|
||||
|
||||
# Make this available to gdb before the program starts, it is
|
||||
# automagically loaded by gdb.
|
||||
set remote_python_file [remote_download host ${srcdir}/${subdir}/${testfile}.py]
|
||||
|
||||
# Start with a fresh gdb.
|
||||
|
||||
gdb_exit
|
||||
gdb_start
|
||||
gdb_reinitialize_dir $srcdir/$subdir
|
||||
gdb_load ${binfile}
|
||||
|
||||
|
|
Loading…
Reference in a new issue