test: fix test-copy without /etc/os-release.

This commit is contained in:
Dimitri John Ledkov 2015-06-23 16:22:40 +01:00
parent 63ea609849
commit 4f36d4004c

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);