projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb3e441
)
test-path-util: check for /lt-test-path-util or /test-path-util (#3841)
author
Mike Gilbert
<floppymaster@gmail.com>
Mon, 1 Aug 2016 01:50:50 +0000
(21:50 -0400)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 1 Aug 2016 01:50:50 +0000
(21:50 -0400)
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
src/test/test-path-util.c
patch
|
blob
|
history
diff --git
a/src/test/test-path-util.c
b/src/test/test-path-util.c
index
6094d4c
..
164a10d
100644
(file)
--- 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);