diff options
author | Luca Boccassi <bluca@debian.org> | 2022-10-25 01:59:47 +0200 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2022-10-25 17:00:26 +0200 |
commit | 92ebf1773a1de70705fd724057345351f639a24f (patch) | |
tree | d13c9e374cc33da70b01cbebf5b09a90ae8e6535 /src/test/test-fs-util.c | |
parent | test-condition: skip test if machine-id is missing (diff) | |
download | systemd-92ebf1773a1de70705fd724057345351f639a24f.tar.xz systemd-92ebf1773a1de70705fd724057345351f639a24f.zip |
test-fs-util: do not fail if machine-id is missing
When building in a chroot there might not be any machine-id
Diffstat (limited to 'src/test/test-fs-util.c')
-rw-r--r-- | src/test/test-fs-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-fs-util.c b/src/test/test-fs-util.c index 5d9d99e272..9c1ced7591 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 */ |