From: Ian Lance Taylor Date: Thu, 3 Dec 2020 19:10:03 +0000 (-0800) Subject: go-test.exp: add -I. when compiling in directory X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a099fd223f836e1d51c7f58e7261e18f483141c;p=gcc.git go-test.exp: add -I. when compiling in directory * go.test/go-test.exp (go-gc-tests): Add -I. when building all sources in a directory (errorcheckdir, compiledir, rundir, rundircmpout). --- diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp index 067f309a296..8f17cb3db71 100644 --- a/gcc/testsuite/go.test/go-test.exp +++ b/gcc/testsuite/go.test/go-test.exp @@ -648,7 +648,7 @@ proc go-gc-tests { } { set last [lindex $packages end] set packages [lreplace $packages end end] foreach p $packages { - dg-test -keep-output [lrange $p 1 end] "-O" "-w $DEFAULT_GOCFLAGS" + dg-test -keep-output [lrange $p 1 end] "-O -I." "-w $DEFAULT_GOCFLAGS" lappend del "[file rootname [file tail [lindex $p 1]]].o" } errchk [lindex $last 1] "[lrange $last 2 end]" @@ -692,7 +692,7 @@ proc go-gc-tests { } { if { [llength $packages] > 0 } { set del [list] foreach p $packages { - dg-test -keep-output [lindex $p 1] "[lrange $p 2 end] -O" "-w $DEFAULT_GOCFLAGS" + dg-test -keep-output [lindex $p 1] "[lrange $p 2 end] -O -I." "-w $DEFAULT_GOCFLAGS" lappend del "[file rootname [file tail [lindex $p 1]]].o" } foreach f $del { @@ -712,7 +712,7 @@ proc go-gc-tests { } { set last [lindex $packages end] set packages [lreplace $packages end end] foreach p $packages { - dg-test -keep-output [lrange $p 1 end] "-O" "-w $DEFAULT_GOCFLAGS" + dg-test -keep-output [lrange $p 1 end] "-O -I." "-w $DEFAULT_GOCFLAGS" lappend del "[file rootname [file tail [lindex $p 1]]].o" } set dg-do-what-default "link" @@ -737,11 +737,11 @@ proc go-gc-tests { } { set last [lindex $packages end] set packages [lreplace $packages end end] foreach p $packages { - dg-test -keep-output [lrange $p 1 end] "-O" "-w $DEFAULT_GOCFLAGS" + dg-test -keep-output [lrange $p 1 end] "-O -I." "-w $DEFAULT_GOCFLAGS" lappend del "[file rootname [file tail [lindex $p 1]]].o" } set dg-do-what-default "link" - dg-test -keep-output [lrange $last 1 end] "$del -O" "-w $DEFAULT_GOCFLAGS" + dg-test -keep-output [lrange $last 1 end] "$del -O -I." "-w $DEFAULT_GOCFLAGS" set base "[file rootname [file tail [lindex $last 1]]]" set output_file "./$base.exe" lappend del $output_file