From 7d1bf85cc5dafbb6a0bd897f54fb50df68a1e7e3 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 18 Feb 2010 15:27:35 +0000 Subject: [PATCH] * gdb.python/py-type.exp: Check for Python support. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.python/py-type.exp | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 518118ce5d1..c056a0ac08f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-02-18 Daniel Jacobowitz + + * gdb.python/py-type.exp: Check for Python support. + 2010-02-17 Pedro Alves * lib/gdb.exp (build_id_debug_filename_get): Don't assume new diff --git a/gdb/testsuite/gdb.python/py-type.exp b/gdb/testsuite/gdb.python/py-type.exp index e7ea8f0790a..ef74d8712b9 100644 --- a/gdb/testsuite/gdb.python/py-type.exp +++ b/gdb/testsuite/gdb.python/py-type.exp @@ -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. -- 2.30.2