aboutsummaryrefslogtreecommitdiffstats
path: root/qpdf
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-03-18 23:22:54 +0100
committerJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-03-19 00:53:18 +0100
commit820a3f04fd4cd967e3831baa835b4b177929f4d3 (patch)
tree6524a93cc46e1d03151fc2fa34602807d303390f /qpdf
parente316e90d1f3124e1ddb7f33f77b91af178b963bd (diff)
downloadqpdf-820a3f04fd4cd967e3831baa835b4b177929f4d3.tar.zst
Remove "lt-" workarounds
The executables that libtool built invoked the underlying binary with an "lt-" prefix. The code contained numerous workarounds for testing, which can now be removed.
Diffstat (limited to 'qpdf')
-rw-r--r--qpdf/pdf_from_scratch.cc5
-rw-r--r--qpdf/qpdf.cc6
-rw-r--r--qpdf/test_driver.cc5
-rw-r--r--qpdf/test_large_file.cc5
-rw-r--r--qpdf/test_pdf_doc_encoding.cc5
-rw-r--r--qpdf/test_pdf_unicode.cc5
-rw-r--r--qpdf/test_tokenizer.cc5
7 files changed, 0 insertions, 36 deletions
diff --git a/qpdf/pdf_from_scratch.cc b/qpdf/pdf_from_scratch.cc
index 0dd5bbf7..10f57c38 100644
--- a/qpdf/pdf_from_scratch.cc
+++ b/qpdf/pdf_from_scratch.cc
@@ -94,11 +94,6 @@ int main(int argc, char* argv[])
{
++whoami;
}
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
if (argc != 2)
{
diff --git a/qpdf/qpdf.cc b/qpdf/qpdf.cc
index 6e4be1ba..5e47327b 100644
--- a/qpdf/qpdf.cc
+++ b/qpdf/qpdf.cc
@@ -33,12 +33,6 @@ int realmain(int argc, char* argv[])
whoami = QUtil::getWhoami(argv[0]);
QUtil::setLineBuf(stdout);
- // Remove prefix added by libtool for consistency during testing.
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
-
QPDFJob j;
try
{
diff --git a/qpdf/test_driver.cc b/qpdf/test_driver.cc
index fd0733fc..46916e15 100644
--- a/qpdf/test_driver.cc
+++ b/qpdf/test_driver.cc
@@ -3495,11 +3495,6 @@ int main(int argc, char* argv[])
{
++whoami;
}
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
if ((argc < 3) || (argc > 4))
{
diff --git a/qpdf/test_large_file.cc b/qpdf/test_large_file.cc
index e403dd51..8f7f8755 100644
--- a/qpdf/test_large_file.cc
+++ b/qpdf/test_large_file.cc
@@ -306,11 +306,6 @@ int main(int argc, char* argv[])
whoami = QUtil::getWhoami(argv[0]);
QUtil::setLineBuf(stdout);
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
if (argc != 4)
{
usage();
diff --git a/qpdf/test_pdf_doc_encoding.cc b/qpdf/test_pdf_doc_encoding.cc
index 2e7103f8..c29b2d94 100644
--- a/qpdf/test_pdf_doc_encoding.cc
+++ b/qpdf/test_pdf_doc_encoding.cc
@@ -22,11 +22,6 @@ int main(int argc, char* argv[])
{
++whoami;
}
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
if (argc != 2)
{
diff --git a/qpdf/test_pdf_unicode.cc b/qpdf/test_pdf_unicode.cc
index 8765cc3f..8964e8a5 100644
--- a/qpdf/test_pdf_unicode.cc
+++ b/qpdf/test_pdf_unicode.cc
@@ -22,11 +22,6 @@ int main(int argc, char* argv[])
{
++whoami;
}
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
if (argc != 2)
{
diff --git a/qpdf/test_tokenizer.cc b/qpdf/test_tokenizer.cc
index 33fb160c..b7eae323 100644
--- a/qpdf/test_tokenizer.cc
+++ b/qpdf/test_tokenizer.cc
@@ -260,11 +260,6 @@ int main(int argc, char* argv[])
{
++whoami;
}
- // For libtool's sake....
- if (strncmp(whoami, "lt-", 3) == 0)
- {
- whoami += 3;
- }
char const* filename = 0;
size_t max_len = 0;