]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Save PPD cache in testcache unit test. master
authorMichael R Sweet <msweet@msweet.org>
Fri, 19 Jun 2026 15:22:30 +0000 (11:22 -0400)
committerMichael R Sweet <msweet@msweet.org>
Fri, 19 Jun 2026 15:22:30 +0000 (11:22 -0400)
cups/testcache.c

index b5ca2e2407d7cb9aa05781f8a220f233d9e51bf6..3d9d191ddf5666ac2c2b7fd85a6afb624416aa83 100644 (file)
@@ -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);