2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-01-08 17:24:06 +00:00
qpdf/libtests/qtest/logger.test
2022-06-18 09:02:55 -04:00

34 lines
734 B
Perl

#!/usr/bin/env perl
require 5.008;
use warnings;
use strict;
chdir("logger") or die "chdir testdir failed: $!\n";
require TestDriver;
my $td = new TestDriver('logger');
cleanup();
$td->runtest("logger",
{$td->COMMAND => "logger >stdout 2>stderr"},
{$td->STRING => "", $td->EXIT_STATUS => 0},
$td->NORMALIZE_NEWLINES);
$td->runtest("check stdout",
{$td->FILE => "stdout"},
{$td->FILE => "exp-stdout"},
$td->NORMALIZE_NEWLINES);
$td->runtest("check stderr",
{$td->FILE => "stderr"},
{$td->FILE => "exp-stderr"},
$td->NORMALIZE_NEWLINES);
cleanup();
$td->report(3);
sub cleanup
{
unlink "stdout", "stderr";
}