mirror of git://gcc.gnu.org/git/gcc.git
testsuite: fix gotest for absolute srcdir
The recent changes to Makefile.am mean that if you configure with an
absolute path as srcdir then gotest will be invoked with absolute paths
for the files. That case never worked. This patch fixes it.
Reviewed-on: https://go-review.googlesource.com/25587
From-SVN: r239256
This commit is contained in:
parent
9afda630f5
commit
9a7b016159
|
|
@ -1,4 +1,4 @@
|
|||
5e4c16d4fea39835e16f17c3d2b2e85f5c81d815
|
||||
2c88d4871558f0451a0ad152a7052dcfaecb254f
|
||||
|
||||
The first line of this file holds the git revision number of the last
|
||||
merge done from the gofrontend repository.
|
||||
|
|
|
|||
|
|
@ -217,6 +217,13 @@ x)
|
|||
;;
|
||||
*)
|
||||
for f in $pkgfiles; do
|
||||
case $f in
|
||||
/*)
|
||||
b=`basename $f`
|
||||
rm -f $b
|
||||
cp $f $b
|
||||
;;
|
||||
*)
|
||||
if test -f $basedir/$f; then
|
||||
b=`basename $f`
|
||||
rm -f $b
|
||||
|
|
@ -229,6 +236,8 @@ x)
|
|||
echo "file $f not found" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
for f in `cd $srcdir; ls *_test.go`; do
|
||||
rm -f $f
|
||||
|
|
@ -252,6 +261,13 @@ x)
|
|||
;;
|
||||
*)
|
||||
for f in $pkgfiles; do
|
||||
case $f in
|
||||
/*)
|
||||
b=`basename $f`
|
||||
rm -f $b
|
||||
cp $f $b
|
||||
;;
|
||||
*)
|
||||
if test -f $basedir/$f; then
|
||||
b=`basename $f`
|
||||
rm -f $b
|
||||
|
|
@ -264,6 +280,8 @@ x)
|
|||
echo "file $f not found" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Reference in New Issue