mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 02:37:47 +00:00
[unit-test] remove extra \n at end of error message (#4367)
This commit removes the extra `\n` at the end of error message strings used in `VerifyOrQuit()` or `SuccessOrQuit()` macros in different unit test modules. This help make the style (usage of macros) consistent across all unit tests.
This commit is contained in:
committed by
Jonathan Hui
parent
720e9130da
commit
ab27fcd9e6
@@ -53,7 +53,7 @@ void test_packed1()
|
||||
|
||||
CompileTimeAssert(sizeof(packed_t) == 7, "packed_t should be packed to 7 bytes");
|
||||
|
||||
VerifyOrQuit(sizeof(packed_t) == 7, "Toolchain::OT_TOOL_PACKED failed 1\n");
|
||||
VerifyOrQuit(sizeof(packed_t) == 7, "Toolchain::OT_TOOL_PACKED failed 1");
|
||||
}
|
||||
|
||||
void test_packed2()
|
||||
@@ -67,7 +67,7 @@ void test_packed2()
|
||||
|
||||
CompileTimeAssert(sizeof(packed_t) == 4, "packed_t should be packed to 4 bytes");
|
||||
|
||||
VerifyOrQuit(sizeof(packed_t) == 4, "Toolchain::OT_TOOL_PACKED failed 2\n");
|
||||
VerifyOrQuit(sizeof(packed_t) == 4, "Toolchain::OT_TOOL_PACKED failed 2");
|
||||
}
|
||||
|
||||
void test_packed_union()
|
||||
@@ -90,7 +90,7 @@ void test_packed_union()
|
||||
|
||||
CompileTimeAssert(sizeof(packed_t) == 5, "packed_t should be packed to 5 bytes");
|
||||
|
||||
VerifyOrQuit(sizeof(packed_t) == 5, "Toolchain::OT_TOOL_PACKED failed 3\n");
|
||||
VerifyOrQuit(sizeof(packed_t) == 5, "Toolchain::OT_TOOL_PACKED failed 3");
|
||||
}
|
||||
|
||||
void test_packed_enum()
|
||||
@@ -99,7 +99,7 @@ void test_packed_enum()
|
||||
neighbor.SetState(ot::Neighbor::kStateValid);
|
||||
|
||||
// Make sure that when we read the 3 bit field it is read as unsigned, so it return '4'
|
||||
VerifyOrQuit(neighbor.GetState() == ot::Neighbor::kStateValid, "Toolchain::OT_TOOL_PACKED failed 4\n");
|
||||
VerifyOrQuit(neighbor.GetState() == ot::Neighbor::kStateValid, "Toolchain::OT_TOOL_PACKED failed 4");
|
||||
}
|
||||
|
||||
void test_addr_sizes()
|
||||
@@ -111,7 +111,7 @@ void test_addr_sizes()
|
||||
|
||||
void test_addr_bitfield()
|
||||
{
|
||||
VerifyOrQuit(CreateNetif_c().mScopeOverrideValid == true, "Toolchain::test_addr_size_cpp\n");
|
||||
VerifyOrQuit(CreateNetif_c().mScopeOverrideValid == true, "Toolchain::test_addr_size_cpp");
|
||||
}
|
||||
|
||||
void TestToolchain(void)
|
||||
|
||||
Reference in New Issue
Block a user