Skip to content

Commit 5b9f9dc

Browse files
authored
Increase limit of max number test suits (#6229)
1 parent 0a9b676 commit 5b9f9dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/support/UnitTestRegistration.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818
#include <stdlib.h>
1919
#include <string.h>
2020
#include <support/UnitTestRegistration.h>
21+
#include <support/logging/CHIPLogging.h>
2122

2223
namespace chip {
2324

24-
const size_t kTestSuitesMax = 64;
25+
const size_t kTestSuitesMax = 128;
2526

2627
typedef struct
2728
{
@@ -45,6 +46,7 @@ CHIP_ERROR RegisterUnitTests(UnitTestTriggerFunction tests)
4546
{
4647
if (gs_test_suites.num_test_suites >= kTestSuitesMax)
4748
{
49+
ChipLogError(Support, "Test suits limit reached");
4850
return CHIP_ERROR_NO_MEMORY;
4951
}
5052

0 commit comments

Comments
 (0)