summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-03-13 13:39:17 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2011-03-13 13:39:17 +0000
commitce77046a681de72eef92c16562bcf873b1953591 (patch)
tree7ce36e93e490bd7334f830041570844b7dadb7fb
parent176400c353f2e0d80ddf42d0f7f1430f7ea5742f (diff)
downloadppe42-binutils-ce77046a681de72eef92c16562bcf873b1953591.tar.gz
ppe42-binutils-ce77046a681de72eef92c16562bcf873b1953591.zip
* gdb.python/py-section-script.exp: Skip test if no Python support.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.python/py-section-script.exp11
2 files changed, 11 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index d92f75ea6e..d56f32a6ba 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/gdb.python/py-section-script.exp b/gdb/testsuite/gdb.python/py-section-script.exp
index e51bd7c765..81762ba45c 100644
--- a/gdb/testsuite/gdb.python/py-section-script.exp
+++ b/gdb/testsuite/gdb.python/py-section-script.exp
@@ -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}
OpenPOWER on IntegriCloud