From: Yu Watanabe Date: Tue, 18 Jan 2022 05:13:02 +0000 (+0900) Subject: test: fix a copy-and-paste error X-Git-Tag: v251-rc1~512 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f67b4351f3035acb7d9024c5bf0a3659b99f386f;p=thirdparty%2Fsystemd.git test: fix a copy-and-paste error Follow-up for 12727c2bc2859995cbd561ffc3d9a4d571202254. Addresses https://github.com/systemd/systemd/pull/22125#discussion_r786358474. Fixes CID#1469023. --- diff --git a/src/test/test-copy.c b/src/test/test-copy.c index 8572f25d879..5a1cf605c1f 100644 --- a/src/test/test-copy.c +++ b/src/test/test-copy.c @@ -333,7 +333,7 @@ TEST_RET(copy_holes) { assert_se(fd >= 0); fd_copy = mkostemp_safe(fn_copy); - assert_se(fd >= 0); + assert_se(fd_copy >= 0); r = RET_NERRNO(fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, 1)); if (ERRNO_IS_NOT_SUPPORTED(r))