mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
test: fix test-copy without /etc/os-release.
This commit is contained in:
parent
63ea609849
commit
4f36d4004c
@ -139,7 +139,9 @@ static void test_copy_bytes(void) {
|
||||
int r, r2;
|
||||
char buf[1024], buf2[1024];
|
||||
|
||||
infd = open("/etc/os-release", O_RDONLY|O_CLOEXEC);
|
||||
infd = open("/usr/lib/os-release", O_RDONLY|O_CLOEXEC);
|
||||
if (infd < 0)
|
||||
infd = open("/etc/os-release", O_RDONLY|O_CLOEXEC);
|
||||
assert_se(infd >= 0);
|
||||
|
||||
assert_se(pipe2(pipefd, O_CLOEXEC) == 0);
|
||||
|
Loading…
Reference in New Issue
Block a user