Skip to content

Commit

Permalink
Re-enable the leak detection in MTRTestCase, now that the test leaks …
Browse files Browse the repository at this point in the history
…are fixed.
  • Loading branch information
bzbarsky-apple committed May 2, 2024
1 parent 66bc46e commit 742e28c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/darwin/Framework/CHIPTests/TestHelpers/MTRTestCase.mm
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ @implementation MTRTestCase
*/
- (void)tearDown
{
#if 0
#if defined(ENABLE_LEAK_DETECTION) && ENABLE_LEAK_DETECTION
if (_detectLeaks) {
int pid = getpid();
__auto_type * cmd = [NSString stringWithFormat:@"leaks %d", pid];
int ret = system(cmd.UTF8String);
XCTAssertEqual(ret, 0, "LEAKS DETECTED");
}
#endif
#endif

[super tearDown];
Expand Down

0 comments on commit 742e28c

Please sign in to comment.