[testsuite/guality] Use buildarea gdb by default in combined build
[official-gcc.git] / gcc / testsuite / gfortran.dg / guality / guality.exp
blob3784cac1ef32e16148819450f84632507731ede3
1 # This harness is for tests that should be run at all optimisation levels.
3 load_lib gfortran-dg.exp
4 load_lib gcc-gdb-test.exp
6 # Disable on darwin until radr://7264615 is resolved.
7 if { [istarget *-*-darwin*] } {
8 return
11 if { [istarget "powerpc-ibm-aix*"] } {
12 set torture_execute_xfail "powerpc-ibm-aix*"
13 return
16 dg-init
18 global GDB
19 if ![info exists ::env(GUALITY_GDB_NAME)] {
20 if [info exists GDB] {
21 set guality_gdb_name "$GDB"
22 } elseif [file exists $rootme/../gdb/gdb] {
23 # If we're doing a combined build, and gdb is available, use it.
24 set guality_gdb_name "$rootme/../gdb/gdb"
25 } else {
26 set guality_gdb_name "[transform gdb]"
28 setenv GUALITY_GDB_NAME "$guality_gdb_name"
30 report_gdb [exec which $::env(GUALITY_GDB_NAME)] [info script]
32 gfortran-dg-runtest [lsort [glob $srcdir/$subdir/*.\[fF\]{,90,95,03,08} ]] "" ""
34 if [info exists guality_gdb_name] {
35 unsetenv GUALITY_GDB_NAME
38 dg-finish