* gdb.pascal/integers.exp: Use standard_testfile, clean_restart.
authorTom Tromey <tromey@redhat.com>
Mon, 25 Jun 2012 20:43:40 +0000 (20:43 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 25 Jun 2012 20:43:40 +0000 (20:43 +0000)
* gdb.pascal/hello.exp: Use standard_testfile, clean_restart.
* gdb.pascal/gdb11492.exp: Use standard_testfile, clean_restart.
* gdb.pascal/floats.exp: Use standard_testfile, clean_restart.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.pascal/floats.exp
gdb/testsuite/gdb.pascal/gdb11492.exp
gdb/testsuite/gdb.pascal/hello.exp
gdb/testsuite/gdb.pascal/integers.exp

index 2d75a1a..90f9bb3 100644 (file)
@@ -1,5 +1,12 @@
 2012-06-25  Tom Tromey  <tromey@redhat.com>
 
+       * gdb.pascal/integers.exp: Use standard_testfile, clean_restart.
+       * gdb.pascal/hello.exp: Use standard_testfile, clean_restart.
+       * gdb.pascal/gdb11492.exp: Use standard_testfile, clean_restart.
+       * gdb.pascal/floats.exp: Use standard_testfile, clean_restart.
+
+2012-06-25  Tom Tromey  <tromey@redhat.com>
+
        * gdb.linespec/ls-errs.exp: Use standard_testfile.
        * gdb.linespec/ls-dollar.exp: Use standard_testfile.
        * gdb.linespec/linespec.exp: Use standard_testfile.
index e7122e7..1bde7fa 100644 (file)
 
 load_lib "pascal.exp"
 
-set testfile "floats"
-set srcfile ${testfile}.pas
-set binfile ${objdir}/${subdir}/${testfile}$EXEEXT
+standard_testfile .pas
 
 if {[gdb_compile_pascal "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return -1
+    untested $testfile.exp
+    return -1
 }
 
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart ${testfile}
+
 set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
 set bp_location2 [gdb_get_line_number "set breakpoint 2 here"]
 
index 48f7b47..d232ddc 100644 (file)
 
 load_lib "pascal.exp"
 
-set testfile "gdb11492"
-set srcfile ${testfile}.pas
-set binfile ${objdir}/${subdir}/${testfile}$EXEEXT
+standard_testfile .pas
 
 if {[gdb_compile_pascal "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return -1
+    untested $testfile.exp
+    return -1
 }
 
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart ${testfile}
 set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
 
 if { [gdb_breakpoint ${srcfile}:${bp_location1}] } {
index 0329acb..cd0fce6 100644 (file)
 
 load_lib "pascal.exp"
 
-set testfile "hello"
-set srcfile ${testfile}.pas
-set binfile ${objdir}/${subdir}/${testfile}${EXEEXT}
+standard_testfile .pas
 
 if {[gdb_compile_pascal "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug ]] != "" } {
   return -1
 }
 
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart ${testfile}
 set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
 set bp_location2 [gdb_get_line_number "set breakpoint 2 here"]
 
index 68b978b..82ce065 100644 (file)
 
 load_lib "pascal.exp"
 
-set testfile "integers"
-set srcfile ${testfile}.pas
-set binfile ${objdir}/${subdir}/${testfile}$EXEEXT
+standard_testfile .pas
 
 if {[gdb_compile_pascal "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug ]] != "" } {
   return -1
 }
 
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart ${testfile}
 set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
 set bp_location2 [gdb_get_line_number "set breakpoint 2 here"]