This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug go/68980] New: [6 regression] ps -o cmd in gotest isn't portable
- From: "ro at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Dec 2015 13:09:32 +0000
- Subject: [Bug go/68980] New: [6 regression] ps -o cmd in gotest isn't portable
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68980
Bug ID: 68980
Summary: [6 regression] ps -o cmd in gotest isn't portable
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: go
Assignee: ian at airs dot com
Reporter: ro at gcc dot gnu.org
CC: cmang at google dot com
Target Milestone: ---
Host: *-*-solaris2.*
Target: *-*-solaris2.*
Build: *-*-solaris2.*
The use of ps -o cmd in gotest isn't portable: on Solaris, this leads to lots
of usage messages in libgo.log
PASS
ps: unknown output format: -o cmd
usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]
[ -u userlist ] [ -U userlist ] [ -G grouplist ]
[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]
'format' is one or more of:
user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid ctid
pri opri pcpu pmem vsz rss osz nice class time etime stime zone zoneid
f s c lwp nlwp psr tty addr wchan fname comm args projid project pset
/vol/gcc/src/hg/trunk/local/libgo/testsuite/gotest[623]: 19046 Terminated
PASS: bufio
and sometimes, in cases where there really some process needs to be killed, to
a
hang of the whole make check.
Solaris ps offers ps -o comm instead, and I suspect there might be more
differences
on other targets.
Rainer