mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-05 04:47:53 +00:00
4ccc8b1a44
ClosedFileInputSource is an input source that keeps the file closed when not reading it.
17 lines
411 B
Perl
17 lines
411 B
Perl
#!/usr/bin/env perl
|
|
require 5.008;
|
|
use warnings;
|
|
use strict;
|
|
|
|
chdir("closedfile") or die "chdir testdir failed: $!\n";
|
|
|
|
require TestDriver;
|
|
|
|
my $td = new TestDriver('closed_file_input_source');
|
|
|
|
$td->runtest("closed file input source",
|
|
{$td->COMMAND => "closed_file_input_source"},
|
|
{$td->FILE => "output", $td->EXIT_STATUS => 0},
|
|
$td->NORMALIZE_NEWLINES);
|
|
$td->report(1);
|