process table may change between find and findProcess

This commit is contained in:
Doug MacEachern 2008-08-10 22:02:12 +00:00
parent b151528a9e
commit f4d6d50966
1 changed files with 0 additions and 5 deletions

View File

@ -135,11 +135,6 @@ public class TestPTQL extends SigarTestCase {
traceln(pids.length + " processes match: " + qs); traceln(pids.length + " processes match: " + qs);
if (pids.length == 1) {
long pid = query.findProcess(sigar);
assertTrue(pid + "==" + pids[0],
pid == pids[0]);
}
if (qs.indexOf(OTHER_PROCESS) != -1) { if (qs.indexOf(OTHER_PROCESS) != -1) {
long pid = sigar.getPid(); long pid = sigar.getPid();
for (int i=0; i<pids.length; i++) { for (int i=0; i<pids.length; i++) {