- Fixed invalid memory access during generating IPP Everywhere queue (Issue #466)
- Fixed memory leaks in `create_local_bg_thread()` (Issue #466)
- Fixed TLS certificate generation bugs.
+- `ippDeleteValues` would not delete the last value (Issue #556)
- Ignore some of IPP defaults if the application sends its PPD alternative (Issue #484)
- Now look for default printer on network if needed (Issue #452)
- Now report fax attributes and values as needed (Issue #459)
/*
* IPP test program for CUPS.
*
+ * Copyright © 2022 by OpenPrinting.
* Copyright © 2007-2019 by Apple Inc.
* Copyright © 1997-2005 by Easy Software Products.
*
#ifdef DEBUG
const char *name; /* Option name */
#endif /* DEBUG */
+ static const char * const test_strings[] =
+ { /* Test strings */
+ "one-string",
+ "two-string",
+ "red-string",
+ "blue-string"
+ };
status = 0;
else
puts("PASS");
+ fputs("ippDeleteValues: ", stdout);
+ attr = ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD, "test-strings", 4, NULL, test_strings);
+ if (ippGetCount(attr) != 4)
+ {
+ printf("FAIL (got %d values, expected 4 values)\n", ippGetCount(attr));
+ status = 1;
+ }
+ else if (!ippDeleteValues(request, &attr, 3, 1))
+ {
+ puts("FAIL (returned 0)");
+ status = 1;
+ }
+ else if (ippGetCount(attr) != 3)
+ {
+ printf("FAIL (got %d values, expected 3 values)\n", ippGetCount(attr));
+ status = 1;
+ }
+ else
+ {
+ puts("PASS");
+ }
+
ippDelete(request);
#ifdef DEBUG