Report validation errors, if any, when reading an IPP message in the unit test
program.
// New attribute; read the name and add it...
if ((*cb)(src, buffer, (size_t)n) < n)
{
+ _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unable to read IPP attribute name."), 1);
DEBUG_puts("1ipp_read_io: unable to read name.");
goto rollback;
}
// attribute read in order to keep the IPP message valid...
rollback:
+ DEBUG_puts("1ipp_read_io: <<rollback>>");
+
_cupsBufferRelease((char *)buffer);
if (attr)
if (request)
{
- printf("\n%s:\n", argv[i]);
+ printf("\n%s: %s\n", argv[i], ippValidateAttributes(request) ? "OK" : cupsGetErrorString());
print_attributes(request, 4);
ippDelete(request);
}