Index: gdb/testsuite/gdb.base/fileio.exp |
diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.exp |
index 310c43883fa6fda46610cdb504e0a356186f508e..a001559361c0974fd15f4b8e7b29f781d948a236 100644 |
--- a/gdb/testsuite/gdb.base/fileio.exp |
+++ b/gdb/testsuite/gdb.base/fileio.exp |
@@ -20,10 +20,6 @@ if [target_info exists gdb,nofileio] { |
continue |
} |
-if $tracelevel then { |
- strace $tracelevel |
-} |
- |
set testfile "fileio" |
set srcfile ${testfile}.c |
@@ -37,7 +33,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb |
# Create and source the file that provides information about the compiler |
# used to compile the test case. |
-if [get_compiler_info ${binfile}] { |
+if [get_compiler_info] { |
return -1; |
} |
@@ -246,8 +242,9 @@ gdb_test continue \ |
"Continuing\\..*time 2:.*OK$stop_msg" \ |
"Time(2) returns feasible values" |
-send_gdb "quit\n" |
-send_gdb "y\n" |
+gdb_exit |
+# Wait till GDB really exits. |
+sleep 1 |
remote_exec build {sh -xc test\ -r\ dir2.fileio.test\ &&\ chmod\ -f\ +w\ dir2.fileio.test} |
remote_exec build {sh -xc rm\ -rf\ *.fileio.test} |