remove invalid assertion

This commit is contained in:
Doug MacEachern 2009-01-21 13:43:21 +00:00
parent 95dcc68c57
commit 3a9d6b7024
1 changed files with 10 additions and 3 deletions

View File

@ -157,9 +157,16 @@ public class TestPTQL extends SigarTestCase {
assertTrue(THIS_PROCESS, assertTrue(THIS_PROCESS,
runQuery(sigar, THIS_PROCESS) == 1); runQuery(sigar, THIS_PROCESS) == 1);
assertTrue(JAVA_PROCESS + " vs. " + OTHER_JAVA_PROCESS, int numProcs = runQuery(sigar, JAVA_PROCESS);
runQuery(sigar, JAVA_PROCESS) != int numOtherProcs = runQuery(sigar, OTHER_JAVA_PROCESS);
runQuery(sigar, OTHER_JAVA_PROCESS)); String msg =
JAVA_PROCESS +
" [" + numProcs + "] vs. [" + numOtherProcs + "] "+
OTHER_JAVA_PROCESS;
//process may have gone away in between runQuery's above.
//assertTrue(msg, numProcs != numOtherProcs);
traceln(msg);
for (int i=0; i<OK_QUERIES.length; i++) { for (int i=0; i<OK_QUERIES.length; i++) {
String qs = OK_QUERIES[i]; String qs = OK_QUERIES[i];