run_all.sh (target_run): Revert 2005-11-17 patch.
* ada/acats/run_all.sh (target_run): Revert 2005-11-17 patch. From-SVN: r107190
This commit is contained in:
parent
a6a5de0428
commit
4c63a5845d
|
@ -1,3 +1,7 @@
|
||||||
|
2005-11-18 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
|
* ada/acats/run_all.sh (target_run): Revert 2005-11-17 patch.
|
||||||
|
|
||||||
2005-11-18 Joseph S. Myers <joseph@codesourcery.com>
|
2005-11-18 Joseph S. Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* g++.dg/cpp/string-2.C: New test.
|
* g++.dg/cpp/string-2.C: New test.
|
||||||
|
|
|
@ -12,25 +12,8 @@
|
||||||
gccflags="-O2"
|
gccflags="-O2"
|
||||||
gnatflags="-gnatws"
|
gnatflags="-gnatws"
|
||||||
|
|
||||||
if [ "x$DEJAGNU_TIMEOUT" != "x" ]; then
|
|
||||||
timeout=$DEJAGNU_TIMEOUT
|
|
||||||
else
|
|
||||||
timeout=300
|
|
||||||
fi
|
|
||||||
|
|
||||||
target_run () {
|
target_run () {
|
||||||
sh -c "
|
$*
|
||||||
(sleep $timeout && kill 2>/dev/null \$\$) &
|
|
||||||
watchdog=\$!
|
|
||||||
($*) &
|
|
||||||
child=\$!
|
|
||||||
trap \"kill 2>/dev/null \$child\" 0 1
|
|
||||||
wait \$child
|
|
||||||
status=\$?
|
|
||||||
trap \"\" 0 1
|
|
||||||
kill 2>/dev/null \$watchdog
|
|
||||||
exit \$status
|
|
||||||
"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# End of customization section.
|
# End of customization section.
|
||||||
|
|
Loading…
Reference in New Issue