Subject: | ps on Solaris does not know vsize |
With perl-5.8.8 on Solaris 10 x86, the test t/memleak_bad_handshake.t
reports this problem:
ps: unknown output format: -o vsize
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
Changing 'vsize' to 'vsz' in t/memleak_bad_handshake.t fixes this
problem on Solaris. But instead of adding a lot of ifs on $^O, why not
use Proc::ProcessTable and skip the test if this module is not there?
Cheers,
Marek