From: Michael R Sweet Date: Wed, 7 May 2025 15:38:18 +0000 (-0400) Subject: Fix testppd unit test - wrong fullbleed size name. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bafd5d1246db3087c6c76204d33ab53f1023824;p=thirdparty%2Fcups.git Fix testppd unit test - wrong fullbleed size name. --- diff --git a/cups/ppd-mark.c b/cups/ppd-mark.c index 964e35eb5f..3e1a5968bf 100644 --- a/cups/ppd-mark.c +++ b/cups/ppd-mark.c @@ -125,7 +125,7 @@ cupsMarkOptions( * Mark it... */ - if (!_cups_strncasecmp(s, "Custom.", 7) || ppdPageSize(ppd, s)) + if (!_cups_strncasecmp(s, "Custom.", 7) && ppdPageSize(ppd, s)) ppd_mark_option(ppd, "PageSize", s); else if ((ppd_keyword = _ppdCacheGetPageSize(cache, NULL, s, NULL)) != NULL) ppd_mark_option(ppd, "PageSize", ppd_keyword); diff --git a/cups/testppd.c b/cups/testppd.c index 61abce61c4..9cac71508f 100644 --- a/cups/testppd.c +++ b/cups/testppd.c @@ -605,8 +605,8 @@ main(int argc, /* I - Number of command-line arguments */ else puts("PASS"); - fputs("cupsMarkOptions(media=oe_letter-fullbleed_8.5x11in): ", stdout); - num_options = cupsAddOption("media", "oe_letter-fullbleed_8.5x11in", 0, + fputs("cupsMarkOptions(media=oe_letter.fullbleed_8.5x11in): ", stdout); + num_options = cupsAddOption("media", "oe_letter.fullbleed_8.5x11in", 0, &options); cupsMarkOptions(ppd, num_options, options); cupsFreeOptions(num_options, options);