From 7bafd5d1246db3087c6c76204d33ab53f1023824 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 7 May 2025 11:38:18 -0400 Subject: [PATCH] Fix testppd unit test - wrong fullbleed size name. --- cups/ppd-mark.c | 2 +- cups/testppd.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.2