myTestsListener = new SMTestListener();
myListeners = listeners;
setPrinter(new MockResultPrinter());</BUG>
try {
Test suite = TestRunnerUtil.getTestSuite(this, args);
<BUG>if (suite == null) return -1;
TestResult result = doRun(suite);
if (!result.wasSuccessful()) {
return -1;
}
return 0;</BUG>
}

myTestsListener = new SMTestListener();
myListeners = listeners;
}
public int startRunnerWithArgs(String[] args, String name, int count, boolean sendTree) {
setPrinter(new MockResultPrinter());
try {
Test suite = TestRunnerUtil.getTestSuite(this, args);
if (suite == null) return -1;
return doRun(suite).wasSuccessful() ? 0 : -1;
}
