test getProcEnv for every process
This commit is contained in:
parent
ee190ec38c
commit
dceb82802d
|
@ -68,5 +68,15 @@ public class TestProcEnv extends SigarTestCase {
|
|||
} catch (SigarPermissionDeniedException e) {
|
||||
//ok
|
||||
}
|
||||
|
||||
long[] pids = sigar.getProcList();
|
||||
|
||||
for (int i=0; i<pids.length; i++) {
|
||||
//traceln("pid=" + pids[i]);
|
||||
try {
|
||||
sigar.getProcEnv(pids[i]);
|
||||
} catch (SigarException e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue