+2013-06-18 Tom Tromey <tromey@redhat.com>
+
+ * lib/selftest-support.exp (do_self_tests): Reject remote or
+ non-native targets.
+ * gdb.gdb/complaints.exp: Remove check.
+ * gdb.gdb/observer.exp: Remove check.
+ * gdb.gdb/xfullpath.exp: Remove check.
+ * gdb.gdb/complaints.exp: Remove check.
+
2013-06-07 Pedro Alves <palves@redhat.com>
* boards/native-extended-gdbserver.exp: Remove semicolon.
load_lib selftest-support.exp
-# are we on a target board
-if { [is_remote target] || ![isnative] } then {
- return
-}
-
if [target_info exists gdb,noinferiorio] {
verbose "Skipping because of no inferiorio capabilities."
return
load_lib selftest-support.exp
-# are we on a target board
-if { [is_remote target] || ![isnative] } then {
- return
-}
-
proc attach_first_observer { message } {
gdb_test_no_output "set \$first_obs = observer_attach_test_notification (&observer_test_first_notification_function)" \
"$message; attach first observer"
load_lib selftest-support.exp
-# are we on a target board
-if { [is_remote target] || ![isnative] } then {
- return
-}
-
proc test_with_self {} {
# A file which contains a directory prefix
gdb_test "print gdb_realpath (\"./xfullpath.exp\")" \
proc do_self_tests {function body} {
global GDB tool
+ # Are we on a target board.
+ if { [is_remote target] || ![isnative] } then {
+ return
+ }
+
# Run the test with self. Copy the file executable file in case
# this OS doesn't like to edit its own text space.