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.
This commit is contained in:
Pedro Alves 2012-02-15 18:09:20 +00:00
parent c691065997
commit 10010058f2
12 changed files with 26 additions and 32 deletions

View 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

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}

View 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;
}