Skip to content

Commit bf9dc57

Browse files
dulmarodfacebook-github-bot-5
authored and
facebook-github-bot-5
committed
Fix broken test
Summary: public In this example we now get a dangling pointer dereference, so contains exactly doesn't work. Reviewed By: jvillard Differential Revision: D2773769 fb-gh-sync-id: 64d1044
1 parent a6fb4d8 commit bf9dc57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infer/tests/endtoend/c/ResourceLeakTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
package endtoend.c;
1111

1212
import static org.hamcrest.MatcherAssert.assertThat;
13-
import static utils.matchers.ResultContainsExactly.containsExactly;
13+
import static utils.matchers.ResultContainsTheseErrors.contains;
1414

1515
import org.junit.BeforeClass;
1616
import org.junit.Test;
@@ -45,7 +45,7 @@ public void mathErrors()
4545
assertThat(
4646
"Results should contain " + RESOURCE_LEAK,
4747
inferResults,
48-
containsExactly(
48+
contains(
4949
RESOURCE_LEAK,
5050
SOURCE_FILE,
5151
functions

0 commit comments

Comments
 (0)