mirror of
https://github.com/espressif/openthread.git
synced 2026-08-29 13:29:54 +00:00
[error] add missing IgnoreError (#4931)
This commit is contained in:
committed by
Jonathan Hui
parent
64dfe6349c
commit
612e10e664
@@ -83,7 +83,7 @@ void TestString(void)
|
||||
VerifyOrQuit(str1.GetLength() == 0, "GetLength() failed for empty string");
|
||||
VerifyOrQuit(strcmp(str1.AsCString(), "") == 0, "String content is incorrect");
|
||||
|
||||
str1.Set("%d", 12);
|
||||
IgnoreError(str1.Set("%d", 12));
|
||||
VerifyOrQuit(str1.GetLength() == 2, "GetLength() failed");
|
||||
VerifyOrQuit(strcmp(str1.AsCString(), "12") == 0, "String content is incorrect");
|
||||
PrintString("str1", str1);
|
||||
|
||||
Reference in New Issue
Block a user