Home | History | Annotate | Download | only in iotest

Lines Matching full:testbuf

511     char testBuf[256] = "";
519 sprintf(testBuf, "%x", (int)num);
522 if (strcmp(myString, testBuf) != 0) {
523 log_err("%%x Got: \"%s\", Expected: \"%s\"\n", myString, testBuf);
526 sprintf(testBuf, "%X", (int)num);
529 if (strcmp(myString, testBuf) != 0) {
530 log_err("%%X Got: \"%s\", Expected: \"%s\"\n", myString, testBuf);
533 sprintf(testBuf, "%o", (int)num);
536 if (strcmp(myString, testBuf) != 0) {
537 log_err("%%o Got: \"%s\", Expected: \"%s\"\n", myString, testBuf);
541 sprintf(testBuf, "%d", (int)num);
544 if (strcmp(myString, testBuf) != 0) {
545 log_err("%%d Got: \"%s\", Expected: \"%s\"\n", myString, testBuf);
548 sprintf(testBuf, "%i", (int)num);
551 if (strcmp(myString, testBuf) != 0) {
552 log_err("%%i Got: \"%s\", Expected: \"%s\"\n", myString, testBuf);
555 sprintf(testBuf, "%f", (double)num);
558 if (strcmp(myString, testBuf) != 0) {
559 log_err("%%f Got: \"%s\", Expected: \"%s\"\n", myString, testBuf);
562 /* sprintf(testBuf, "%e", (double)num);
565 if (strcmp(myString, testBuf) != 0) {
566 log_err("%%e Got: \"%s\", Expected: \"%s\"\n", myString, testBuf);
569 sprintf(testBuf, "%E", (double)num);
572 if (strcmp(myString, testBuf) != 0) {
573 log_err("%%E Got: \"%s\", Expected: \"%s\"\n", myString, testBuf);
576 sprintf(testBuf, "%g", (double)num);
579 if (strcmp(myString, testBuf) != 0) {
580 log_err("%%g Got: \"%s\", Expected: \"%s\"\n", myString, testBuf);
583 sprintf(testBuf, "%G", (double)num);
586 if (strcmp(myString, testBuf) != 0) {
587 log_err("%%G Got: \"%s\", Expected: \"%s\"\n", myString, testBuf);
592 testBuf[0] = (char)0xFF;
594 sprintf(testBuf, "%c", (char)num);
597 if (testBuf[0] != myString[0] || myString[0] != num) {
598 log_err("%%c Got: 0x%x, Expected: 0x%x\n", myString[0], testBuf[0]);