From: Luca Boccassi Date: Mon, 24 Oct 2022 23:59:47 +0000 (+0100) Subject: test-fs-util: do not fail if machine-id is missing X-Git-Tag: v252~30^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92ebf1773a1de70705fd724057345351f639a24f;p=thirdparty%2Fsystemd.git test-fs-util: do not fail if machine-id is missing When building in a chroot there might not be any machine-id --- diff --git a/src/test/test-fs-util.c b/src/test/test-fs-util.c index 5d9d99e272a..9c1ced7591a 100644 --- a/src/test/test-fs-util.c +++ b/src/test/test-fs-util.c @@ -216,7 +216,7 @@ TEST(chase_symlinks) { result = mfree(result); r = chase_symlinks("/etc/machine-id/foo", NULL, 0, &result, NULL); - assert_se(r == -ENOTDIR); + assert_se(IN_SET(r, -ENOTDIR, -ENOENT)); result = mfree(result); /* Path that loops back to self */