Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
bc920159
Commit
bc920159
authored
Apr 24, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gotest: Remove race in use of ../testdata.
From-SVN: r186781
parent
21e41715
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
libgo/testsuite/gotest
+16
-14
No files found.
libgo/testsuite/gotest
View file @
bc920159
...
...
@@ -136,18 +136,20 @@ rm -rf $DIR
mkdir
$DIR
cd
$DIR
mkdir
test
cd test
if
test
$keep
=
false
;
then
trap
"cd ..; rm -rf
$DIR
"
0 1 2 3 14 15
trap
"cd ..
/..
; rm -rf
$DIR
"
0 1 2 3 14 15
else
trap
"cd ..; echo Keeping
$DIR
"
0 1 2 3 14 15
trap
"cd ..
/..
; echo Keeping
$DIR
"
0 1 2 3 14 15
fi
case
"
$srcdir
"
in
/
*
)
;;
*
)
srcdir
=
"../
$srcdir
"
srcdir
=
"../
../
$srcdir
"
;;
esac
...
...
@@ -158,7 +160,7 @@ case "$basedir" in
/
*
)
;;
*
)
basedir
=
"../
$basedir
"
basedir
=
"../
../
$basedir
"
;;
esac
...
...
@@ -189,10 +191,10 @@ x)
b
=
`
basename
$f
`
rm
-f
$b
cp
$basedir
/
$f
$b
elif
test
-f
../
$f
;
then
elif
test
-f
../
../
$f
;
then
b
=
`
basename
$f
`
rm
-f
$b
cp ../
$f
$b
cp ../
../
$f
$b
else
echo
"file
$f
not found"
1>&2
exit
1
...
...
@@ -224,10 +226,10 @@ x)
b
=
`
basename
$f
`
rm
-f
$b
cp
$basedir
/
$f
$b
elif
test
-f
../
$f
;
then
elif
test
-f
../
../
$f
;
then
b
=
`
basename
$f
`
rm
-f
$b
cp ../
$f
$b
cp ../
../
$f
$b
else
echo
"file
$f
not found"
1>&2
exit
1
...
...
@@ -455,27 +457,27 @@ xno)
exit
$status
;;
xyes
)
rm
-rf
../testsuite/
*
.o
rm
-rf
../
../
testsuite/
*
.o
files
=
`
echo
*
`
for
f
in
$files
;
do
if
test
"
$f
"
=
"_obj"
||
test
"
$f
"
=
"_test"
;
then
continue
fi
rm
-rf
../testsuite/
$f
rm
-rf
../
../
testsuite/
$f
if
test
-f
$f
;
then
cp
$f
../testsuite/
cp
$f
../
../
testsuite/
else
ln
-s
../
$DIR
/
$f
../testsuite/
ln
-s
../
$DIR
/
test/
$f
../
../testsuite/
fi
done
cd
../testsuite
cd
../
../
testsuite
rm
-rf
_obj _test
mkdir _obj _test
if
test
"
$testname
"
!=
""
;
then
GOTESTNAME
=
"
$testname
"
export
GOTESTNAME
fi
$MAKE
check
RUNTESTFLAGS
=
"
$RUNTESTFLAGS
GOTEST_TMPDIR=
$DIR
"
$MAKE
check
RUNTESTFLAGS
=
"
$RUNTESTFLAGS
GOTEST_TMPDIR=
$DIR
/test
"
# Useful when using make check-target-libgo
cat
libgo.log
>>
libgo-all.log
cat
libgo.sum
>>
libgo-all.sum
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment