summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-condition.c4
-rw-r--r--src/test/test-path-util.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/test/test-condition.c b/src/test/test-condition.c
index 4ef61ebfa5..66003aa6bd 100644
--- a/src/test/test-condition.c
+++ b/src/test/test-condition.c
@@ -144,9 +144,9 @@ static void test_condition_test_host(void) {
assert_se(hostname);
/* if hostname looks like an id128 then skip testing it */
- if (id128_is_valid(hostname)) {
+ if (id128_is_valid(hostname))
log_notice("hostname is an id128, skipping test");
- } else {
+ else {
condition = condition_new(CONDITION_HOST, hostname, false, false);
assert_se(condition_test(condition));
condition_free(condition);
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);