Skip to content

Commit

Permalink
Increase limit of max number test suits (project-chip#6229)
Browse files Browse the repository at this point in the history
  • Loading branch information
kghost authored Apr 22, 2021
1 parent 0a9b676 commit 5b9f9dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/support/UnitTestRegistration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
#include <stdlib.h>
#include <string.h>
#include <support/UnitTestRegistration.h>
#include <support/logging/CHIPLogging.h>

namespace chip {

const size_t kTestSuitesMax = 64;
const size_t kTestSuitesMax = 128;

typedef struct
{
Expand All @@ -45,6 +46,7 @@ CHIP_ERROR RegisterUnitTests(UnitTestTriggerFunction tests)
{
if (gs_test_suites.num_test_suites >= kTestSuitesMax)
{
ChipLogError(Support, "Test suits limit reached");
return CHIP_ERROR_NO_MEMORY;
}

Expand Down

0 comments on commit 5b9f9dc

Please sign in to comment.