summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppymaster@gmail.com>2016-07-31 21:50:50 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-07-31 21:50:50 -0400
commit6d1e2ddd59f929ce98e400cb14fba7a873e2b409 (patch)
treed592cb55dfbfd36ba3ebe8cc35a050919ed9825a
parentcb3e4417590196bd30e1b8097348dca6ba34bd15 (diff)
test-path-util: check for /lt-test-path-util or /test-path-util (#3841)
Depending on how binutils was configured and the --enable-fast-install configure option, the test binary might be called either name. Fixes: https://github.com/systemd/systemd/issues/3838
-rw-r--r--src/test/test-path-util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c
index 6094d4c3e5..164a10d8a8 100644
--- a/src/test/test-path-util.c
+++ b/src/test/test-path-util.c
@@ -114,7 +114,8 @@ static void test_find_binary(const char *self) {
assert_se(find_binary(self, &p) == 0);
puts(p);
- assert_se(endswith(p, "/lt-test-path-util"));
+ /* libtool might prefix the binary name with "lt-" */
+ assert_se(endswith(p, "/lt-test-path-util") || endswith(p, "/test-path-util"));
assert_se(path_is_absolute(p));
free(p);