Update years in copyright notice for the GDB files.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / mi-async.exp
index e09b68cba94a970dce364c3db246624fecf045a4..a40e4d6ba45b98968c70955c418b6ff9c51e0565 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
+# Copyright 2008-2013 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # Test asynchronous Machine Interface (MI) responses.
 #
 
-# This currently only works with native linux and the async remote protocol.
-if { !([isnative] && [istarget *-linux*]) \
-     && (![target_info exists gdb_protocol] \
-         || [target_info gdb_protocol] != "async") } then {
+# Because of the way this test is written, using 'start' and not using
+# mi_run_cmd, it ignores whatever target the rest of GDB testsuite is
+# using, and always tries to run natively.  So, don't do anything unless
+# we're actually testing native.
+if { !([isnative] && [istarget *-linux*]) } then {
   return
 }
 
@@ -35,10 +36,9 @@ if [mi_gdb_start] {
     continue
 }
 
-set testfile "basics"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/mi-async
-if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
+standard_testfile basics.c
+
+if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
      untested mi-async.exp
      return -1
 }
This page took 0.025468 seconds and 4 git commands to generate.