This patch from Andrew Wilkins makes the use of ps in the libgo testsuite more portable. This should fix GCC PR 68980. Committed to mainline.
Ian
Index: libgo/testsuite/gotest =================================================================== --- libgo/testsuite/gotest (revision 231693) +++ libgo/testsuite/gotest (working copy) @@ -618,7 +618,7 @@ xno) wait $pid status=$? if ! test -f gotest-timeout; then - sleeppid=`ps -o pid,ppid,cmd | grep " $alarmpid " | grep sleep | sed -e 's/ *\([0-9]*\) .*$/\1/'` + sleeppid=`ps -o pid,ppid,comm | grep " $alarmpid " | grep sleep | sed -e 's/ *\([0-9]*\) .*$/\1/'` kill $alarmpid wait $alarmpid if test "$sleeppid" != ""; then