only:Simulator/win10/gcc12.2.0 assertString FAILED fix #5682

This commit is contained in:
Andrey 2023-11-02 09:25:50 -04:00
parent cadd268190
commit 61909b2f4e
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,9 @@ static void runChprintfTest() {
{
LoggingWithStorage testLogging("test");
testLogging.appendPrintf( "a%.2fb%fc", -1.2, -3.4);
assertString(testLogging.buffer, "a-1.20b-3.400000095c");
// different compilers produce different 8th digit
testLogging.buffer[strlen(testLogging.buffer) - 1] = 'X';
assertString(testLogging.buffer, "a-1.20b-3.400000095X");
}
}