Skip to content

Commit f217707

Browse files
authoredMar 13, 2025
[Darwin] MTRMockCB reference in MTRTestCase should not be behind HAVE_NSTASK (#38004)
1 parent 62dbd5d commit f217707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/darwin/Framework/CHIPTests/TestHelpers/MTRTestCase.mm

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
// Tasks that are not scoped to a specific test, but rather to a specific test suite.
2828
static NSMutableSet<NSTask *> * sRunningCrossTestTasks;
2929

30-
static MTRMockCB * sMockCB;
31-
3230
static void ClearTaskSet(NSMutableSet<NSTask *> * __strong & tasks)
3331
{
3432
for (NSTask * task in tasks) {
@@ -39,6 +37,8 @@ static void ClearTaskSet(NSMutableSet<NSTask *> * __strong & tasks)
3937
}
4038
#endif // HAVE_NSTASK
4139

40+
static MTRMockCB * sMockCB;
41+
4242
@implementation MTRTestCase {
4343
#if HAVE_NSTASK
4444
NSMutableSet<NSTask *> * _runningTasks;

0 commit comments

Comments
 (0)