Skip to content

Commit

Permalink
Demo Binder leak false negative
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodbx committed Sep 9, 2016
1 parent 12c69bb commit d28f920
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,16 @@ public class ServiceBinderLeakTest {
assertFalse(result.leakFound);
}

@Test public void falseNegativeBinderLeak() {
// uncomment to fail
// excludedRefs.rootClass("android.os.Binder", true);

AnalysisResult result = analyze(
TestUtil.fileFromName("LC_issue_482.hprof"),
"8aeae2dd-98ec-4a91-a91c-c730a3332f76",
excludedRefs
);

assertTrue(result.leakFound);
}
}
Binary file not shown.

0 comments on commit d28f920

Please sign in to comment.