Return -1 if not entry method is found.
This commit is contained in:
parent
09ffcb9dc6
commit
2d78f40bdc
|
@ -45,7 +45,7 @@ public class Test01 {
|
|||
public void testGood02() throws IllegalArgumentException, CancelException, IOException, CoreException {
|
||||
AllTests.init();
|
||||
int result = SuperGraphUtil.analyzeAndSaveSuperGraph(AllTests.superGraph, entryClass, "good02");
|
||||
assertEquals(0, result);
|
||||
assertEquals(-1, result);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -166,7 +166,7 @@ public class SuperGraphUtil {
|
|||
if(mainEntryId == 0 && mainExitId == 0) {
|
||||
log.error(" "+entryClass + "." + entryMethod +
|
||||
": empty entry method, ensure invocation in main method");
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
HashSet<Integer> relevantIDs = new HashSet<Integer>();
|
||||
BasicBlockInContext<IExplodedBasicBlock> bbic = sgNodes.get(mainEntryId);
|
||||
|
|
Loading…
Reference in New Issue