[error] add missing IgnoreError (#4931)

This commit is contained in:
Abtin Keshavarzian
2020-05-06 22:05:25 -07:00
committed by Jonathan Hui
parent 64dfe6349c
commit 612e10e664
9 changed files with 40 additions and 38 deletions
+1 -1
View File
@@ -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);