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
49fd1b33
Commit
49fd1b33
authored
Apr 05, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gotest: Add external timeout if internal timeout fails.
From-SVN: r172003
parent
bc8e4748
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
libgo/testsuite/gotest
+14
-1
No files found.
libgo/testsuite/gotest
View file @
49fd1b33
...
...
@@ -377,7 +377,20 @@ case "x$dejagnu" in
xno
)
${
GC
}
-g
-c
_testmain.go
${
GL
}
*
.o
${
GOLIBS
}
./a.out
-test
.short
-test
.timeout
=
$timeout
"
$@
"
./a.out
-test
.short
-test
.timeout
=
$timeout
"
$@
"
&
pid
=
$!
(
sleep
`
expr
$timeout
+ 10
`
echo
>
gotest-timeout
echo
"timed out in gotest"
1>&2
kill
-9
$pid
)
&
alarmpid
=
$!
wait
$pid
status
=
$?
if
!
test
-f
gotest-timeout
;
then
kill
$alarmpid
fi
exit
$status
;;
xyes
)
rm
-rf
../testsuite/
*
.o
...
...
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