OSDN Git Service

* lib/gcc-gdb-test.exp (gdb-test): Delete $cmd_file before return.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Oct 2011 18:23:30 +0000 (18:23 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Oct 2011 18:23:30 +0000 (18:23 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179767 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr47218.C
gcc/testsuite/lib/gcc-gdb-test.exp

index f5decfd..7d5a1f4 100644 (file)
@@ -1,9 +1,13 @@
+2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
+
+       * lib/gcc-gdb-test.exp (gdb-test): Delete $cmd_file before return.
+
 2011-10-10  Janis Johnson  <janisjo@codesourcery.com>
 
        * gcc.dg/graphite/id-pr46845.c: Include powerpc for warning options.
 
 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
-           Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
+           Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
 
        * gcc.target/i386/fma_1.h: New file.
        * gcc.target/i386/fma_2.h: Likewise.
        PR fortran/50625
        * gfortran.dg/class_46.f03: New.
 
-2011-10-06  Joern Rennecke <joern.rennecke@embecosm.com>
+2011-10-06  Joern Rennecke  <joern.rennecke@embecosm.com>
 
        * gcc.dg/pr47276.c (ASMNAME, ASMNAME2, STRING): Define.
        (__EI___vsyslog_chk, __EI_syslog, __EI_vsyslog): Use ASMNAME.
        * gcc.dg/vect/pr49038.c: New test.
 
 2011-05-26  Fabien ChĂȘne  <fabien@gcc.gnu.org>
+
        * g++.dg/init/pr25811-3.C: New.
        * g++.dg/init/pr25811-4.C: New.
 
 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
 
        PR libobjc/48177
-       * objc.dg/pr48177.m: New testcase.      
+       * objc.dg/pr48177.m: New testcase.
 
 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
 
index f94e157..57245c0 100644 (file)
@@ -18,4 +18,4 @@ int main ()
   return 0;
 }
 
-// { dg-final cleanup-saved-temps }
+// { dg-final { cleanup-saved-temps } }
index 22e7a49..2f593ab 100644 (file)
@@ -56,6 +56,7 @@ proc gdb-test { args } {
     set res [remote_spawn target "$gdb_name -nx -nw -quiet -x $cmd_file ./$output_file"]
     if { $res < 0 || $res == "" } {
        unsupported "$testname"
+       file delete $cmd_file
        return
     }
 
@@ -64,6 +65,7 @@ proc gdb-test { args } {
        -re "Unhandled dwarf expression|Error in sourced command file" {
            unsupported "$testname"
            remote_close target
+           file delete $cmd_file
            return
        }
        -re {[\n\r]\$1 = ([^\n\r]*)[\n\r]+\$2 = ([^\n\r]*)[\n\r]} {
@@ -76,16 +78,19 @@ proc gdb-test { args } {
                fail "$testname"
            }
            remote_close target
+           file delete $cmd_file
            return
        }
        timeout {
            unsupported "$testname"
            remote_close target
+           file delete $cmd_file
            return
        }
     }
 
-    remote_close target
     unsupported "$testname"
+    remote_close target
+    file delete $cmd_file
     return
 }