[LTP] [PATCH v1 2/2] syscalls/ioctl: Use tst_detach_device_by_fd api
Cyril Hrubis
chrubis@suse.cz
Thu Jul 23 11:26:34 CEST 2020
Hi!
Pushed with fix for ioctl_loop04, thanks.
I've fixed the -i 2 case for ioctl_loop04 with:
diff --git a/testcases/kernel/syscalls/ioctl/ioctl_loop04.c b/testcases/kernel/syscalls/ioctl/ioctl_loop04.c
index af3e90ddc..b4ab44a74 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl_loop04.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl_loop04.c
@@ -42,6 +42,8 @@ static void verify_ioctl_loop(void)
SAFE_TRUNCATE("test.img", NEW_SIZE);
SAFE_IOCTL(dev_fd, LOOP_SET_CAPACITY);
+ SAFE_LSEEK(dev_fd, 0, SEEK_SET);
+
/*check that we can't write data beyond 5K into loop device*/
TEST(write(dev_fd, wrbuf, OLD_SIZE));
if (TST_RET == NEW_SIZE) {
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list