Index: gdb/testsuite/gdb.ada/arrayidx.exp |
diff --git a/gdb/testsuite/gdb.ada/arrayidx.exp b/gdb/testsuite/gdb.ada/arrayidx.exp |
index 5de1145098d878f180e1cde1d74c6f378dbc9106..5dd1dd2925c3f0a11f1eaf5c1791a7103bebc5e2 100644 |
--- a/gdb/testsuite/gdb.ada/arrayidx.exp |
+++ b/gdb/testsuite/gdb.ada/arrayidx.exp |
@@ -1,4 +1,4 @@ |
-# Copyright 2005, 2007-2012 Free Software Foundation, Inc. |
+# Copyright 2005-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 |
@@ -17,18 +17,14 @@ load_lib "ada.exp" |
if { [skip_ada_tests] } { return -1 } |
-set testdir "arrayidx" |
-set testfile "${testdir}/p" |
-set srcfile ${srcdir}/${subdir}/${testfile}.adb |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_ada_testfile p |
-file mkdir ${objdir}/${subdir}/${testdir} |
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} { |
return -1 |
} |
if [get_compiler_info] { |
- return -1; |
+ return -1 |
} |
set old_gcc [expr [test_compiler_info {gcc-[0-3]-*}] \ |
|| [test_compiler_info {gcc-4-[0-6]-*}]] |