]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: fix a copy-and-paste error
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 18 Jan 2022 05:13:02 +0000 (14:13 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 18 Jan 2022 08:30:46 +0000 (09:30 +0100)
Follow-up for 12727c2bc2859995cbd561ffc3d9a4d571202254.

Addresses https://github.com/systemd/systemd/pull/22125#discussion_r786358474.

Fixes CID#1469023.

src/test/test-copy.c

index 8572f25d879c39b85d6c6666d13c8bdb3066de61..5a1cf605c1ffa882c23b6240a0bda03c50ea4a90 100644 (file)
@@ -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))