test getProcEnv for every process

This commit is contained in:
Doug MacEachern 2008-03-05 02:28:26 +00:00
parent ee190ec38c
commit dceb82802d
1 changed files with 10 additions and 0 deletions

View File

@ -68,5 +68,15 @@ public class TestProcEnv extends SigarTestCase {
} catch (SigarPermissionDeniedException e) { } catch (SigarPermissionDeniedException e) {
//ok //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) {
}
}
} }
} }