aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qtest
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-11-30 04:08:25 +0100
committerJay Berkenbilt <ejb@ql.org>2013-11-30 21:58:32 +0100
commit478c05fcab6cb4137b9cbaf55fdcdb6ff74107c0 (patch)
treeb3861bf4962f0509a7ccf2ec58f794d7a54b23f2 /examples/qtest
parent88c29873e56e69c83aa0d0798188cd792368059b (diff)
downloadqpdf-478c05fcab6cb4137b9cbaf55fdcdb6ff74107c0.tar.zst
Allow -DNO_GET_ENVIRONMENT to avoid GetEnvironmentVariable
If NO_GET_ENVIRONMENT is #defined at compile time on Windows, do not call GetEnvironmentVariable. QUtil::get_env will always return false. This option is not available through configure. This was added to support a specific user's requirements to avoid calling GetEnvironmentVariable from the Windows API. Nothing in qpdf outside the test coverage system in qtest relies on QUtil::get_env.
Diffstat (limited to 'examples/qtest')
-rw-r--r--examples/qtest/double-page-size.test3
-rw-r--r--examples/qtest/invert-images.test3
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/qtest/double-page-size.test b/examples/qtest/double-page-size.test
index 0c4a08bd..780a8f0d 100644
--- a/examples/qtest/double-page-size.test
+++ b/examples/qtest/double-page-size.test
@@ -12,7 +12,8 @@ my $td = new TestDriver('double-page-size');
cleanup();
$td->runtest("double page size",
- {$td->COMMAND => "pdf-double-page-size in.pdf a.pdf"},
+ {$td->COMMAND => ['pdf-double-page-size', ' --static-id',
+ 'in.pdf', 'a.pdf']},
{$td->STRING =>
"pdf-double-page-size: new file written to a.pdf\n",
$td->EXIT_STATUS => 0},
diff --git a/examples/qtest/invert-images.test b/examples/qtest/invert-images.test
index 0dc15a28..0f5a2f1e 100644
--- a/examples/qtest/invert-images.test
+++ b/examples/qtest/invert-images.test
@@ -12,7 +12,8 @@ my $td = new TestDriver('invert-images');
cleanup();
$td->runtest("double page size",
- {$td->COMMAND => "pdf-invert-images in.pdf a.pdf"},
+ {$td->COMMAND => ['pdf-invert-images', ' --static-id',
+ 'in.pdf', 'a.pdf']},
{$td->STRING =>
"pdf-invert-images: new file written to a.pdf\n",
$td->EXIT_STATUS => 0},