1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

Merge pull request #338 from xnox/fix-copy-bytes

test: fix test-copy without /etc/os-release.
This commit is contained in:
Kay Sievers 2015-06-23 17:34:24 +02:00
commit 3f9340a685

View File

@ -139,6 +139,8 @@ static void test_copy_bytes(void) {
int r, r2;
char buf[1024], buf2[1024];
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);