output: Make it possible to push and pop output engines.
[pspp] / tests / output / render-test.c
index fbc0f208484d973f4170b053abd694d8761fca68..a8c912835fa942adf046222c9e0fcc31643cd4a0 100644 (file)
@@ -74,6 +74,7 @@ main (int argc, char **argv)
   FILE *input;
 
   set_program_name (argv[0]);
+  output_engine_push ();
   input_file_name = parse_options (argc, argv);
 
   if (!strcmp (input_file_name, "-"))
@@ -119,7 +120,7 @@ main (int argc, char **argv)
   if (input != stdin)
     fclose (input);
 
-  output_close ();
+  output_engine_pop ();
 
   return 0;
 }