From: Michael R Sweet Date: Fri, 19 Jun 2026 15:22:30 +0000 (-0400) Subject: Save PPD cache in testcache unit test. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;p=thirdparty%2Fcups.git Save PPD cache in testcache unit test. --- diff --git a/cups/testcache.c b/cups/testcache.c index b5ca2e2407..3d9d191ddf 100644 --- a/cups/testcache.c +++ b/cups/testcache.c @@ -1,14 +1,11 @@ /* * PPD cache testing program for CUPS. * - * Copyright © 2020-2024 by OpenPrinting. - * Copyright 2009-2018 by Apple Inc. + * Copyright © 2020-2026 by OpenPrinting. + * Copyright © 2009-2018 by Apple Inc. * - * Licensed under Apache License v2.0. See the file "LICENSE" for more information. - */ - -/* - * Include necessary headers... + * Licensed under Apache License v2.0. See the file "LICENSE" for more + * information. */ #include "ppd-private.h" @@ -59,6 +56,8 @@ main(int argc, /* I - Number of command-line args */ return (1); } + _ppdCacheWriteFile(pc, "t.cache", /*attrs*/NULL); + for (i = 2; i < argc; i ++) num_options = cupsParseOptions(argv[i], num_options, &options);