+2016-07-06 Simon Marchi <simon.marchi@ericsson.com>
+
+ * lib/ada.exp: Remove extra directory level in build directory.
+ * gdb.ada/cond_lang.exp: Likewise.
+ * gdb.ada/exec_changed.exp: Likewise.
+ * gdb.ada/lang_switch.exp: Likewise.
+
2016-07-06 Manish Goregaokar <manish@mozilla.com>
* simple.rs: Add test for raw pointer subscripting
standard_ada_testfile a
-set cfile "${testdir}/foo"
-set csrcfile ${srcdir}/${subdir}/${cfile}.c
+set cfile "foo"
+set csrcfile ${srcdir}/${subdir}/${testdir}/${cfile}.c
set cobject [standard_output_file ${cfile}.o]
gdb_compile "${csrcfile}" "${cobject}" object [list debug]
}
# Build the second test program
-set testfile2 "${testdir}/second"
-set srcfile2 ${srcdir}/${subdir}/${testfile2}.adb
-set binfile2 [standard_output_file ${testfile2}$EXEEXT]
+set srcfile2 ${srcdir}/${subdir}/${testdir}/second.adb
+set binfile2 [standard_output_file second$EXEEXT]
if {[gdb_compile_ada "${srcfile2}" "${binfile2}" executable {debug}] != ""} {
return -1
# Start with a fresh gdb.
-set common_binfile [standard_output_file ${testdir}/common$EXEEXT]
+set common_binfile [standard_output_file common$EXEEXT]
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
load_lib "ada.exp"
standard_ada_testfile lang_switch
-set cfile "${testdir}/foo"
-set csrcfile ${srcdir}/${subdir}/${cfile}.c
+set cfile "foo"
+set csrcfile ${srcdir}/${subdir}/${testdir}/${cfile}.c
set cobject [standard_output_file ${cfile}.o]
gdb_compile "${csrcfile}" "${cobject}" object [list debug]
} else {
set testdir $dir
}
- set testfile $testdir/$base_file
- set srcfile $srcdir/$subdir/$testfile.adb
- set binfile [standard_output_file $testfile]
- file mkdir [standard_output_file $testdir]
+ set testfile $base_file
+ set srcfile $srcdir/$subdir/$testdir/$testfile.adb
+ set binfile [standard_output_file $testfile]
}