Skip to content

Commit 357b7bf

Browse files
committed
Use ASSERT_EQ instead of VerifyOrDie
1 parent dc97126 commit 357b7bf

5 files changed

+5
-5
lines changed

src/lib/core/tests/TestCHIPCallback.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static void canceler(Cancelable * ca)
9090
class TestCHIPCallback : public ::testing::Test
9191
{
9292
public:
93-
static void SetUpTestSuite() { VerifyOrDie(chip::Platform::MemoryInit() == CHIP_NO_ERROR); }
93+
static void SetUpTestSuite() { ASSERT_EQ(chip::Platform::MemoryInit(), CHIP_NO_ERROR); }
9494
static void TearDownTestSuite() { chip::Platform::MemoryShutdown(); }
9595
};
9696

src/lib/core/tests/TestOTAImageHeader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const uint8_t kMinOtaImageWithoutVendor[] = { 0x1e, 0xf1, 0xee, 0x1b, 0x44, 0x00
7272
class TestOTAImageHeader : public ::testing::Test
7373
{
7474
public:
75-
static void SetUpTestSuite() { VerifyOrDie(chip::Platform::MemoryInit() == CHIP_NO_ERROR); }
75+
static void SetUpTestSuite() { ASSERT_EQ(chip::Platform::MemoryInit(), CHIP_NO_ERROR); }
7676
static void TearDownTestSuite() { chip::Platform::MemoryShutdown(); }
7777
};
7878

src/lib/core/tests/TestReferenceCounted.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ using namespace chip;
3636
class TestReferenceCounted : public ::testing::Test
3737
{
3838
public:
39-
static void SetUpTestSuite() { VerifyOrDie(chip::Platform::MemoryInit() == CHIP_NO_ERROR); }
39+
static void SetUpTestSuite() { ASSERT_EQ(chip::Platform::MemoryInit(), CHIP_NO_ERROR); }
4040
static void TearDownTestSuite() { chip::Platform::MemoryShutdown(); }
4141
};
4242

src/lib/core/tests/TestTLV.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class TestTLV : public ::testing::Test
208208
{
209209
public:
210210
static TestTLVContext ctx;
211-
static void SetUpTestSuite() { VerifyOrDie(chip::Platform::MemoryInit() == CHIP_NO_ERROR); }
211+
static void SetUpTestSuite() { ASSERT_EQ(chip::Platform::MemoryInit(), CHIP_NO_ERROR); }
212212
static void TearDownTestSuite() { chip::Platform::MemoryShutdown(); }
213213
};
214214

src/lib/core/tests/TestTLVVectorWriter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct TestTLVContext
4848
class TestTLVVectorWriter : public ::testing::Test
4949
{
5050
public:
51-
static void SetUpTestSuite() { VerifyOrDie(chip::Platform::MemoryInit() == CHIP_NO_ERROR); }
51+
static void SetUpTestSuite() { ASSERT_EQ(chip::Platform::MemoryInit(), CHIP_NO_ERROR); }
5252
static void TearDownTestSuite() { chip::Platform::MemoryShutdown(); }
5353
};
5454

0 commit comments

Comments
 (0)