mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
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
This commit is contained in:
parent
cb3e441759
commit
6d1e2ddd59
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user