- TEST(i, snprintf(b, sizeof b, int_tests[j].fmt, int_tests[j].i), strlen(b), "%d != %d");
- TEST_S(b, int_tests[j].expect, "bad integer conversion");
+ i = snprintf(b, sizeof b, int_tests[j].fmt, int_tests[j].i);
+ if (i != strlen(int_tests[j].expect)) {
+ error("snprintf(b, sizeof b, \"%s\", %d) returned %d wanted %d\n",
+ int_tests[j].fmt, int_tests[j].i, i, strlen(int_tests[j].expect));
+ }
+ if (strcmp(b, int_tests[j].expect) != 0)
+ error("bad integer conversion: got \"%s\", want \"%s\"\n", b, int_tests[j].expect);