* gdb.python/py-type.exp: Check for Python support.
authorDaniel Jacobowitz <drow@false.org>
Thu, 18 Feb 2010 15:27:35 +0000 (15:27 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 18 Feb 2010 15:27:35 +0000 (15:27 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-type.exp

index 518118ce5d11a97448e271758fc2e781aa63e041..c056a0ac08f7fb5bd6b2e1ea96954e930f2d5d30 100644 (file)
@@ -1,3 +1,7 @@
+2010-02-18  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.python/py-type.exp: Check for Python support.
+
 2010-02-17  Pedro Alves  <pedro@codesourcery.com>
 
        * lib/gdb.exp (build_id_debug_filename_get): Don't assume new
index e7ea8f0790aeed91925132654df45a609da46615..ef74d8712b97849d85d73d6a6b8f44a836337022 100644 (file)
@@ -128,6 +128,15 @@ proc test_range {} {
 # Perform C Tests.
 build_inferior "c"
 restart_gdb "break to inspect struct and array."
+
+gdb_test_multiple "python print 'hello, world!'" "verify python support" {
+    -re "not supported.*$gdb_prompt $" {
+      unsupported "python support is disabled"
+      return -1
+    }
+    -re "$gdb_prompt $"        {}
+}
+
 test_fields "c"
 
 # Perform C++ Tests.