Reverse sense of compare images toggle for qpdf.test

Run compare images tests when QPDF_TEST_COMPARE_IMAGES is set rather
than when QPDF_SKIP_TEST_COMPARE_IMAGES is not set.
This commit is contained in:
Jay Berkenbilt 2022-03-05 08:17:17 -05:00 committed by Jay Berkenbilt
parent b8ec4395e7
commit c0a231bf32
1 changed files with 4 additions and 4 deletions

View File

@ -20,11 +20,11 @@ cleanup();
my $devNull = File::Spec->devnull();
my $td = new TestDriver('qpdf');
my $compare_images = 1;
if ((exists $ENV{'QPDF_SKIP_TEST_COMPARE_IMAGES'}) &&
($ENV{'QPDF_SKIP_TEST_COMPARE_IMAGES'} eq '1'))
my $compare_images = 0;
if ((exists $ENV{'QPDF_TEST_COMPARE_IMAGES'}) &&
($ENV{'QPDF_TEST_COMPARE_IMAGES'} eq '1'))
{
$compare_images = 0;
$compare_images = 1;
}
my $large_file_test_path = $ENV{'QPDF_LARGE_FILE_TEST_PATH'} || undef;
if (defined($large_file_test_path))