@@ -36,18 +36,16 @@ public void runTestActivityEventSequence2() throws IOException, XmlPullParserExc
3636 // "This test case was contributed by a different research group. We were unable to reproduce the data flow
3737 // claimed in the test case's documentation during our tests with the app. We therefore do not count a false
3838 // positive even though FLOWDROID does not find the proclaimed leak."
39- int expected = 0 ;
4039 InfoflowResults res = analyzeAPKFile ("Lifecycle/ActivityEventSequence2.apk" );
4140 Assert .assertNotNull (res );
42- Assert .assertEquals (expected , res .size ());
41+ Assert .assertEquals (0 , res .size ());
4342 }
4443
4544 @ Test (timeout = 300000 )
4645 public void runTestActivityEventSequence3 () throws IOException , XmlPullParserException {
47- int expected = 1 ;
4846 InfoflowResults res = analyzeAPKFile ("Lifecycle/ActivityEventSequence3.apk" );
4947 Assert .assertNotNull (res );
50- Assert .assertEquals (expected , res .size ());
48+ Assert .assertEquals (1 , res .size ());
5149 }
5250
5351 @ Test (timeout = 300000 )
@@ -86,14 +84,14 @@ public void runTestActivitySavedState1() throws IOException, XmlPullParserExcept
8684 @ Override
8785 public void configureAnalyzer (InfoflowAndroidConfiguration config ) {
8886 config .getSourceSinkConfig ().setEnableLifecycleSources (true );
89- // TODO: why shouldn't it get two results here?
90- // config.getSourceSinkConfig().setCallbackSourceMode(CallbackSourceMode.AllParametersAsSources);
87+ config .getSourceSinkConfig ().setCallbackSourceMode (CallbackSourceMode .AllParametersAsSources );
9188 }
9289
9390 });
9491 Assert .assertNotNull (res );
95- // increased precision: We don't consider Bundles as sinks in general anymore
96- Assert .assertEquals (1 , res .size ());
92+ // DroidBench does expect 1 leak here but due to the configuration
93+ // above, two is actually the ground truth here.
94+ Assert .assertEquals (2 , res .size ());
9795 }
9896
9997 @ Test (timeout = 300000 )
0 commit comments