|
37 | 37 | import soot.jimple.infoflow.data.AccessPath; |
38 | 38 | import soot.jimple.infoflow.data.SootMethodAndClass; |
39 | 39 | import soot.jimple.infoflow.entryPointCreators.DefaultEntryPointCreator; |
| 40 | +import soot.jimple.infoflow.entryPointCreators.SequentialEntryPointCreator; |
40 | 41 | import soot.jimple.infoflow.results.InfoflowResults; |
41 | 42 | import soot.jimple.infoflow.sourcesSinks.definitions.MethodSourceSinkDefinition; |
42 | 43 | import soot.jimple.infoflow.sourcesSinks.manager.ISourceSinkManager; |
@@ -1229,4 +1230,21 @@ public void aliasWithOverwriteTest4() { |
1229 | 1230 | checkInfoflow(infoflow, 1); |
1230 | 1231 | } |
1231 | 1232 |
|
| 1233 | + @Test(timeout = 300000) |
| 1234 | + public void innerFieldReductionTestNegative() { |
| 1235 | + IInfoflow infoflow = initInfoflow(); |
| 1236 | + List<String> epoints = new ArrayList<String>(); |
| 1237 | + epoints.add("<soot.jimple.infoflow.test.HeapTestCode: void innerFieldReductionTestNegative()>"); |
| 1238 | + infoflow.computeInfoflow(appPath, libPath, new SequentialEntryPointCreator(epoints), sources, sinks); |
| 1239 | + negativeCheckInfoflow(infoflow); |
| 1240 | + } |
| 1241 | + |
| 1242 | + @Test(timeout = 300000) |
| 1243 | + public void innerFieldReductionTestNegative2() { |
| 1244 | + IInfoflow infoflow = initInfoflow(); |
| 1245 | + List<String> epoints = new ArrayList<String>(); |
| 1246 | + epoints.add("<soot.jimple.infoflow.test.HeapTestCode: void innerFieldReductionTestNegative2()>"); |
| 1247 | + infoflow.computeInfoflow(appPath, libPath, new SequentialEntryPointCreator(epoints), sources, sinks); |
| 1248 | + negativeCheckInfoflow(infoflow); |
| 1249 | + } |
1232 | 1250 | } |
0 commit comments