* gdb.objc/basicclass.exp: Use standard_testfile.
authorTom Tromey <tromey@redhat.com>
Fri, 22 Jun 2012 17:15:22 +0000 (17:15 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 22 Jun 2012 17:15:22 +0000 (17:15 +0000)
(do_objc_tests): Don't declare objdir.
* gdb.objc/nondebug.exp: Use standard_testfile.
(do_objc_tests): Don't declare objdir.
* gdb.objc/objcdecode.exp: Use standard_testfile.
(do_objc_tests): Don't declare objdir.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.objc/basicclass.exp
gdb/testsuite/gdb.objc/nondebug.exp
gdb/testsuite/gdb.objc/objcdecode.exp

index 2bfe39b..e205c26 100644 (file)
@@ -1,5 +1,14 @@
 2012-06-22  Tom Tromey  <tromey@redhat.com>
 
+       * gdb.objc/basicclass.exp: Use standard_testfile.
+       (do_objc_tests): Don't declare objdir.
+       * gdb.objc/nondebug.exp: Use standard_testfile.
+       (do_objc_tests): Don't declare objdir.
+       * gdb.objc/objcdecode.exp: Use standard_testfile.
+       (do_objc_tests): Don't declare objdir.
+
+2012-06-22  Tom Tromey  <tromey@redhat.com>
+
        * gdb.java/jmain.exp: Use standard_testfile.
        * gdb.java/jmisc.exp: Use standard_testfile.
        * gdb.java/jnpe.exp: Use standard_testfile.
index 6ebffb0..befe620 100644 (file)
@@ -15,9 +15,7 @@
 
 # This file was written by Adam Fedor (fedor@gnu.org)
 
-set testfile "basicclass"
-set srcfile ${testfile}.m
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile .m
 
 #
 # Objective-C program compilation isn't standard. We need to figure out
@@ -73,7 +71,6 @@ proc deduce_language_of_main {} {
 
 proc do_objc_tests {} {
     global subdir
-    global objdir
     global srcdir
     global binfile
     global gdb_prompt
index ea775fc..bca897f 100644 (file)
@@ -17,9 +17,7 @@
 
 # This file was written by Adam Fedor (fedor@gnu.org)
 
-set testfile "nondebug"
-set srcfile ${testfile}.m
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile .m
 
 #
 # Objective-C program compilation isn't standard. We need to figure out
@@ -31,7 +29,6 @@ if {[gdb_compile_objc "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [
 
 proc do_objc_tests {} {
     global subdir
-    global objdir
     global srcdir
     global binfile
     global gdb_prompt
index ba2085a..9a39de2 100644 (file)
@@ -17,9 +17,7 @@
 
 # This file was written by Adam Fedor (fedor@gnu.org)
 
-set testfile "objcdecode"
-set srcfile ${testfile}.m
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile .m
 
 #
 # Objective-C program compilation isn't standard. We need to figure out
@@ -31,7 +29,6 @@ if {[gdb_compile_objc "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [
 
 proc do_objc_tests {} {
     global subdir
-    global objdir
     global srcdir
     global binfile
     global gdb_prompt