fix test assertion
This commit is contained in:
parent
96839c028a
commit
3571d739a1
@ -59,7 +59,9 @@ public class TestProcArgs extends SigarTestCase {
|
|||||||
findArg(args, TestProcArgs.class.getName());
|
findArg(args, TestProcArgs.class.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
assertTrue(args[0].indexOf("java") != -1);
|
if (args.length > 0) {
|
||||||
|
assertTrue(args[0].indexOf("java") != -1);
|
||||||
|
}
|
||||||
|
|
||||||
//hpux has a limit less than what these args will be
|
//hpux has a limit less than what these args will be
|
||||||
if (!System.getProperty("os.name").equals("HP-UX")) {
|
if (!System.getProperty("os.name").equals("HP-UX")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user