Lines Matching refs:testBuf
516 char testBuf[256] = ""; in TestStringCompatibility() local
524 sprintf(testBuf, "%x", (int)num); in TestStringCompatibility()
527 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
528 log_err("%%x Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
531 sprintf(testBuf, "%X", (int)num); in TestStringCompatibility()
534 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
535 log_err("%%X Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
538 sprintf(testBuf, "%o", (int)num); in TestStringCompatibility()
541 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
542 log_err("%%o Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
546 sprintf(testBuf, "%d", (int)num); in TestStringCompatibility()
549 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
550 log_err("%%d Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
553 sprintf(testBuf, "%i", (int)num); in TestStringCompatibility()
556 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
557 log_err("%%i Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
560 sprintf(testBuf, "%f", (double)num); in TestStringCompatibility()
563 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
564 log_err("%%f Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
581 sprintf(testBuf, "%g", (double)num); in TestStringCompatibility()
584 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
585 log_err("%%g Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
588 sprintf(testBuf, "%G", (double)num); in TestStringCompatibility()
591 if (strcmp(myString, testBuf) != 0) { in TestStringCompatibility()
592 log_err("%%G Got: \"%s\", Expected: \"%s\"\n", myString, testBuf); in TestStringCompatibility()
597 testBuf[0] = (char)0xFF; in TestStringCompatibility()
599 sprintf(testBuf, "%c", (char)num); in TestStringCompatibility()
602 if (testBuf[0] != myString[0] || myString[0] != num) { in TestStringCompatibility()
603 log_err("%%c Got: 0x%x, Expected: 0x%x\n", myString[0], testBuf[0]); in TestStringCompatibility()