mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-23 03:18:59 +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);
|