diff --git a/core/src/test/java/com/ibm/wala/core/tests/callGraph/CallGraphTest.java b/core/src/test/java/com/ibm/wala/core/tests/callGraph/CallGraphTest.java index ac3ee6f572..968e0b5462 100644 --- a/core/src/test/java/com/ibm/wala/core/tests/callGraph/CallGraphTest.java +++ b/core/src/test/java/com/ibm/wala/core/tests/callGraph/CallGraphTest.java @@ -366,6 +366,7 @@ public void testZeroOneContainerStaticMethods() "did not find call to valueOf"); } + /** Testing that there is no crash during iteration of points to sets */ @Test public void testIteratingPointsToSetsForCreationSites() throws CallGraphBuilderCancelException, IOException, ClassHierarchyException { @@ -392,10 +393,9 @@ public void testIteratingPointsToSetsForCreationSites() && methodName.equals("foo")) { if (lpk.isParameter()) { for (InstanceKey ik : pointerAnalysis.getPointsToSet(lpk)) { - System.err.println(ik); Iterator> iterator = ik.getCreationSites(cg); while (iterator.hasNext()) { - iterator.next(); // crash here + iterator.next(); // making sure there is no crash here } } }