fix test assertion
This commit is contained in:
1 parent
96839c028a
commit
3571d739a1
1 file changed
+3
-1
@@ -59,7 +59,9 @@ public class TestProcArgs extends SigarTestCase {
|
||||
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
|
||||
if (!System.getProperty("os.name").equals("HP-UX")) {
|
||||
|
||||
Reference in new issue
Block a user