From 1087652396bc56da86a2efdadfeaff34a8cb30c3 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 28 Jun 2023 11:37:47 -0700 Subject: [PATCH] Fixing Build & Test Failures with Darwin (#27529) --- src/darwin/Framework/CHIPTests/MTRErrorTests.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/darwin/Framework/CHIPTests/MTRErrorTests.m b/src/darwin/Framework/CHIPTests/MTRErrorTests.m index 67457cd57021ee..a89467aed5639f 100644 --- a/src/darwin/Framework/CHIPTests/MTRErrorTests.m +++ b/src/darwin/Framework/CHIPTests/MTRErrorTests.m @@ -20,6 +20,8 @@ #import "MTRTestKeys.h" #import "MTRTestStorage.h" +#import + @interface MTRErrorTests : XCTestCase @end @@ -67,7 +69,7 @@ - (void)testErrorSourcePaths return [error containsString:@".mm:"]; }] anyObject]; NSString * frameworkSource = [self sourceFileFromErrorString:frameworkError]; - XCTAssertTrue([frameworkSource scriptingEndsWith:@".mm"]); + XCTAssertTrue([frameworkSource hasSuffix:@".mm"]); XCTAssertFalse([frameworkSource containsString:@"/"], @"frameworkSource: %@", frameworkSource); }