]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2012-02-15 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Wed, 15 Feb 2012 18:09:20 +0000 (18:09 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 15 Feb 2012 18:09:20 +0000 (18:09 +0000)
* gdb.trace/backtrace.exp: Issue UNSUPPORTED instead of PASS when
the target doesn't support tracepoints.
* gdb.trace/circ.exp: Ditto.
* gdb.trace/collection.exp: Ditto.
* gdb.trace/packetlen.exp: Ditto.
* gdb.trace/passc-dyn.exp: Ditto.
* gdb.trace/report.exp: Ditto.
* gdb.trace/tfind.exp: Ditto.
* gdb.trace/tspeed.exp: Ditto.
* gdb.trace/tsv.exp: Ditto.
* gdb.trace/unavailable.exp: Ditto.
* gdb.trace/while-dyn.exp: Ditto.

12 files changed:
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/backtrace.exp
gdb/testsuite/gdb.trace/circ.exp
gdb/testsuite/gdb.trace/collection.exp
gdb/testsuite/gdb.trace/packetlen.exp
gdb/testsuite/gdb.trace/passc-dyn.exp
gdb/testsuite/gdb.trace/report.exp
gdb/testsuite/gdb.trace/tfind.exp
gdb/testsuite/gdb.trace/tspeed.exp
gdb/testsuite/gdb.trace/tsv.exp
gdb/testsuite/gdb.trace/unavailable.exp
gdb/testsuite/gdb.trace/while-dyn.exp

index 449b80e778bf94bd62e6dc8862caa8b8fd67cc72..bd967dcf13bb2210dd4da9d0cac999bd1a9ad98e 100644 (file)
@@ -1,3 +1,18 @@
+2012-02-15  Pedro Alves  <palves@redhat.com>
+
+       * gdb.trace/backtrace.exp: Issue UNSUPPORTED instead of PASS when
+       the target doesn't support tracepoints.
+       * gdb.trace/circ.exp: Ditto.
+       * gdb.trace/collection.exp: Ditto.
+       * gdb.trace/packetlen.exp: Ditto.
+       * gdb.trace/passc-dyn.exp: Ditto.
+       * gdb.trace/report.exp: Ditto.
+       * gdb.trace/tfind.exp: Ditto.
+       * gdb.trace/tspeed.exp: Ditto.
+       * gdb.trace/tsv.exp: Ditto.
+       * gdb.trace/unavailable.exp: Ditto.
+       * gdb.trace/while-dyn.exp: Ditto.
+
 2012-02-15  Pedro Alves  <palves@redhat.com>
 
        * gdb.trace/circ.exp (trace_buffer_normal): Rewrite using
index f68344283ca7f8fe818ae2591d5a104c0e490374..7d978930bbe6ea976034ef4169b2677486d52b1c 100644 (file)
@@ -35,10 +35,8 @@ gdb_test "tfind none"  ".*" ""
 runto_main
 gdb_reinitialize_dir $srcdir/$subdir
 
-# We generously give ourselves one "pass" if we successfully 
-# detect that this test cannot be run on this target!
 if { ![gdb_target_supports_trace] } then {
-    pass "Current target does not support trace"
+    unsupported "Current target does not support trace"
     return 1;
 
 }
index 4344bebc08694e3fd9c5eb299e081af1aecb725f..67b4389c6a8345fa565ec9c88984586526d68a2c 100644 (file)
@@ -125,11 +125,8 @@ proc trace_buffer_normal { } {
 
 # return 0 for success, 1 for failure
 proc gdb_trace_circular_tests { } {
-
-    # We generously give ourselves one "pass" if we successfully 
-    # detect that this test cannot be run on this target!
     if { ![gdb_target_supports_trace] } then { 
-       pass "Current target does not support trace"
+       unsupported "Current target does not support trace"
        return 1;
     }
 
index 9398248cc2b9ee6ca60adfca11b2dc26ae18db25..9beb9afba2cdcde240a1528c508ef2a6515f1e5d 100644 (file)
@@ -779,10 +779,8 @@ proc gdb_trace_collection_test {} {
 clean_restart $executable
 runto_main
 
-# We generously give ourselves one "pass" if we successfully
-# detect that this test cannot be run on this target!
 if { ![gdb_target_supports_trace] } then {
-    pass "Current target does not support trace"
+    unsupported "Current target does not support trace"
     return 1;
 }
 
index ccc43841b99e532ca3368a5e8cd01d0635fca101..4ce13e660f0386fc07f8f322037868a056a413f2 100644 (file)
@@ -35,10 +35,8 @@ gdb_test "tfind none"  ".*" ""
 runto_main
 gdb_reinitialize_dir $srcdir/$subdir
 
-# We generously give ourselves one "pass" if we successfully
-# detect that this test cannot be run on this target!
 if { ![gdb_target_supports_trace] } then {
-    pass "Current target does not support trace"
+    unsupported "Current target does not support trace"
     return 1;
 
 }
index 1ec120e11f91836fac3d6a4c5015d6015a9fde2a..718a4da6bb00eb69f2ea4471caa586ef454a4ff0 100644 (file)
@@ -34,10 +34,8 @@ gdb_test "tfind none"  ".*" ""
 runto_main
 gdb_reinitialize_dir $srcdir/$subdir
 
-# We generously give ourselves one "pass" if we successfully 
-# detect that this test cannot be run on this target!
 if { ![gdb_target_supports_trace] } then {
-    pass "Current target does not support trace"
+    unsupported "Current target does not support trace"
     return 1;
 
 }
index 2f2962a3a05a34f22f7cc96096e6cf5312e175f7..7c08a419b84a96c3e298f2e13b150402bc95f821 100644 (file)
@@ -35,10 +35,8 @@ gdb_test "tfind none"  ".*" ""
 runto_main
 gdb_reinitialize_dir $srcdir/$subdir
 
-# We generously give ourselves one "pass" if we successfully 
-# detect that this test cannot be run on this target!
 if { ![gdb_target_supports_trace] } then {
-    pass "Current target does not support trace"
+    unsupported "Current target does not support trace"
     return 1;
 
 }
index ec0ba11e697bd4c20970d56cf2d5134ce11ecd98..d025f39cba502ab59ffc3930311b382dc1e48ab1 100644 (file)
@@ -36,10 +36,8 @@ gdb_test "tfind none"  ".*" ""
 runto_main
 gdb_reinitialize_dir $srcdir/$subdir
 
-# We generously give ourselves one "pass" if we successfully 
-# detect that this test cannot be run on this target!
 if { ![gdb_target_supports_trace] } then {
-    pass "Current target does not support trace"
+    unsupported "Current target does not support trace"
     return 1;
 
 }
index 0becf18859a0749df33b1a5077dd775c8de4cd87..b6e6ecad57b102e729ee04f7c0baef46840b0209 100644 (file)
@@ -129,10 +129,8 @@ proc gdb_trace_collection_test {} {
 clean_restart $executable
 runto_main
 
-# We generously give ourselves one "pass" if we successfully
-# detect that this test cannot be run on this target!
 if { ![gdb_target_supports_trace] } then {
-    pass "Current target does not support trace"
+    unsupported "Current target does not support trace"
     return 1;
 }
 
index 373bc420d0f6520e78abed6fdedbf5dcafea7457..b8af4d63b6a87ec211e1f0cbe5e7fda09eab3a7f 100644 (file)
@@ -92,7 +92,7 @@ gdb_reinitialize_dir $srcdir/$subdir
 
 # The rest of the testing needs actual tracing to work.
 if { ![gdb_target_supports_trace] } then {
-    pass "Current target does not support trace"
+    unsupported "Current target does not support trace"
     return 1;
 }
 
index 5d82d4c8649a057e93fae9fc8ebad6a492e0ad8a..87af8601f0e43aaed716c339f3fa405e2ca781db 100644 (file)
@@ -586,10 +586,8 @@ proc gdb_trace_collection_test {} {
 clean_restart $executable
 runto_main
 
-# We generously give ourselves one "pass" if we successfully
-# detect that this test cannot be run on this target!
 if { ![gdb_target_supports_trace] } then {
-    pass "Current target does not support trace"
+    unsupported "Current target does not support trace"
     return 1;
 }
 
index f71f3a417e8eaf062f10a1fd75db5a3400d2a4f9..3e8aa2da86dcfee26228005fc8903b2954febad3 100644 (file)
@@ -36,10 +36,8 @@ gdb_test "tfind none"  ".*" ""
 runto_main
 gdb_reinitialize_dir $srcdir/$subdir
 
-# We generously give ourselves one "pass" if we successfully 
-# detect that this test cannot be run on this target!
 if { ![gdb_target_supports_trace] } then {
-    pass "Current target does not support trace"
+    unsupported "Current target does not support trace"
     return 1;
 }