mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-17 18:15:09 +00:00
9a0b88bf77
git-svn-id: svn+q:///qpdf/trunk@599 71b93d88-0707-0410-a8cf-f5a4172ac649
27 lines
420 B
Perl
27 lines
420 B
Perl
# -*- perl -*-
|
|
|
|
require 5.005;
|
|
use strict;
|
|
use FileHandle;
|
|
|
|
package QTC;
|
|
|
|
sub TC
|
|
{
|
|
my ($scope, $case, $n) = @_;
|
|
local $!;
|
|
$n = 0 unless defined $n;
|
|
return unless ($scope eq ($ENV{'TC_SCOPE'} || ""));
|
|
my $filename = $ENV{'TC_FILENAME'} || return;
|
|
my $fh = new FileHandle(">>$filename") or
|
|
die "open test coverage file: $!\n";
|
|
print $fh "$case $n\n";
|
|
$fh->close();
|
|
}
|
|
|
|
1;
|
|
|
|
#
|
|
# END OF QTC
|
|
#
|