GDB copyright headers update after running GDB's copyright.py script.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / detach.exp
index 47b83ada4fb24c83d9c19dbf30f55b448a03c5ee..920dac21c3149e0f01efee57f8f1e0ae975b1d5b 100644 (file)
@@ -1,4 +1,4 @@
-#   Copyright 2003, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+#   Copyright 2003-2016 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 running a program from the GDB prompt and then detaching it.
 # NOTE: This test could be much more thorough.
 
-if $tracelevel then {
-       strace $tracelevel
-}
-
-set prms_id 0
-set bug_id 0
 
 # Only GNU/Linux is known to support this.
 if { ! [istarget "*-*-linux*"] } {
@@ -33,10 +27,8 @@ if [is_remote target] then {
     return 0
 }
 
-set testfile "attach"
-set srcfile  ${testfile}.c
-set binfile  ${objdir}/${subdir}/${testfile}
-set escapedbinfile  [string_to_regexp ${objdir}/${subdir}/${testfile}]
+standard_testfile attach.c
+set escapedbinfile  [string_to_regexp ${binfile}]
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
      untested detach.exp
@@ -51,7 +43,7 @@ proc do_detach_tests {} {
   global pass
 
   runto_main
-  gdb_test "set should_exit = 1" "" "set should_exit, $pass"
+  gdb_test_no_output "set should_exit = 1" "set should_exit, $pass"
   gdb_test "detach" "Detaching from program: .*$escapedbinfile, .*" "detach, $pass"
 }
 
This page took 0.026947 seconds and 4 git commands to generate.