mirror of
https://github.com/espressif/openthread.git
synced 2026-09-06 17:20:09 +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
@@ -73,7 +73,7 @@ void TestHmacSha256(void)
|
||||
hmac.Update(reinterpret_cast<const uint8_t *>(tests[i].data), static_cast<uint16_t>(strlen(tests[i].data)));
|
||||
hmac.Finish(hash);
|
||||
|
||||
VerifyOrQuit(memcmp(hash, tests[i].hash, sizeof(tests[i].hash)) == 0, "HMAC-SHA-256 failed\n");
|
||||
VerifyOrQuit(memcmp(hash, tests[i].hash, sizeof(tests[i].hash)) == 0, "HMAC-SHA-256 failed");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user