len = vsnprintf(s, len, format, args);
va_end(args);
- fail_unless(s != NULL, "len = %i, s = s", len);
+ fail_unless(s != NULL,
+ "Invalid result for '%s': len = %i.", expected, len);
fail_unless(!strcmp(s, expected),
- "Invalid result for '%s': %s.", expected, s);
+ "Invalid result for '%s': %s.", expected, s);
g_free(s);
}
#endif
len = sr_vsnprintf_ascii(s, len, format, args);
va_end(args);
- fail_unless(s != NULL, "len = %i, s = s", len);
+ fail_unless(s != NULL,
+ "Invalid result for '%s': len = %i.", expected, len);
fail_unless(!strcmp(s, expected),
"Invalid result for '%s': %s.", expected, s);
g_free(s);