From 0a0d607cf52cfb9358b1a385ab2783074d2cb808 Mon Sep 17 00:00:00 2001 From: Simon Chopin Date: Mon, 24 Oct 2022 16:27:59 +0200 Subject: tests/server-test: fix the tests on usr-merged systems The testsuite is failing on Ubuntu builders as they operate with /bin a symlink to /usr/bin. As a result, depending on how you resolve it, `ls` can either be `/bin/ls` or `/usr/bin/ls`. Since Debian also seems to transition to such a setup, it might be wise to simply relax the tests. --- tests/server-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/server-test.c b/tests/server-test.c index 9b55246..d339499 100644 --- a/tests/server-test.c +++ b/tests/server-test.c @@ -107,7 +107,8 @@ test_uccs_exec (void) g_assert(server != NULL); g_assert(g_strcmp0(server->name, "My Server") == 0); g_assert(g_strcmp0(server->uri, "http://my.domain.com") == 0); - g_assert(g_strcmp0(UCCS_SERVER(server)->exec, "/bin/ls") == 0); + g_assert(g_strcmp0(UCCS_SERVER(server)->exec, "/bin/ls") == 0 || + g_strcmp0(UCCS_SERVER(server)->exec, "/usr/bin/ls") == 0); g_object_unref(server); g_key_file_unref(keyfile); -- cgit v1.2.3