* gdb.python/py-section-script.exp: Skip test if no Python support.
authorUlrich Weigand <uweigand@de.ibm.com>
Sun, 13 Mar 2011 13:39:17 +0000 (13:39 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Sun, 13 Mar 2011 13:39:17 +0000 (13:39 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-section-script.exp

index d92f75ea6eb7f9f205a397e47064ca8b46091fe8..d56f32a6ba8bd79c89c36b95b8ee452a50d4a418 100644 (file)
@@ -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.
index e51bd7c765325a0544aa5cf6941d742bf0966c86..81762ba45c905b08a1827491fa23b948f53dac36 100644 (file)
@@ -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}