* gdb.python/py-value.exp (test_value_in_inferior): Skip arg0 test
authorDaniel Jacobowitz <drow@false.org>
Tue, 16 Feb 2010 21:13:10 +0000 (21:13 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 16 Feb 2010 21:13:10 +0000 (21:13 +0000)
if arguments are not supported.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-value.exp

index 333637f365cc6b7d1145957e9a8550d506843667..4f0e069a631504c304b3542de1876df0af970a22 100644 (file)
@@ -1,3 +1,8 @@
+2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.python/py-value.exp (test_value_in_inferior): Skip arg0 test
+       if arguments are not supported.
+
 2010-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * gdb.cp/overload.exp: Allow foo::overload1arg's "this" pointer to
index aa4e519da8f4e811548acb75f5c279e8d3731ab2..d980a3d603af6c66ceeac5fadb18c92b0c862ec1 100644 (file)
@@ -227,7 +227,9 @@ proc test_value_in_inferior {} {
   gdb_py_test_silent_cmd "python arg0 = argv.dereference ()" "dereference value" 1
 
   # Check that the dereferenced value is sane
-  gdb_test "python print arg0" "0x.*$testfile\"" "verify dereferenced value"
+  if { ! [target_info exists noargs] } {
+    gdb_test "python print arg0" "0x.*$testfile\"" "verify dereferenced value"
+  }
 
   # Smoke-test is_optimized_out attribute
   gdb_test "python print 'result =', arg0.is_optimized_out" "= False" "Test is_optimized_out attribute"
This page took 0.039075 seconds and 4 git commands to generate.