-# Copyright 2003, 2007, 2008, 2009 Free Software Foundation, Inc.
+# Copyright 2003-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 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*"] } {
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
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"
}