[LTP] [PATCH 2/2] syscalls/ioctl: ioctl_sg01.c:TBROK: Test killed!
Xinpeng Liu
liuxp11@chinatelecom.cn
Mon Jan 25 11:24:48 CET 2021
[root@test ioctl]# ./ioctl_sg01
tst_test.c:1263: TINFO: Timeout per run is 0h 05m 00s
ioctl_sg01.c:81: TINFO: Found SCSI device /dev/sg2
Test timeouted, sending SIGKILL!
Test timeouted, sending SIGKILL!
Test timeouted, sending SIGKILL!
Test timeouted, sending SIGKILL!
tst_test.c:1308: TINFO: If you are running on slow machine, try exporting
LTP_TIMEOUT_MUL > 1
tst_test.c:1309: TBROK: Test killed! (timeout?)
[root@test ioctl]# lscpu |grep Model
Model: 85
Model name: Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz
[root@test ioctl]# free -h
total used free shared buff/cache available
Mem: 502G 2.7G 499G 82M 820M 497G
Swap: 0B 0B 0B
512G RAM is too common,so add timeout 600 seconds,result is TPASS.
Signed-off-by: Xinpeng Liu <liuxp11@chinatelecom.cn>
---
testcases/kernel/syscalls/ioctl/ioctl_sg01.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/kernel/syscalls/ioctl/ioctl_sg01.c b/testcases/kernel/syscalls/ioctl/ioctl_sg01.c
index 94b30dc..d1f2d3c 100644
--- a/testcases/kernel/syscalls/ioctl/ioctl_sg01.c
+++ b/testcases/kernel/syscalls/ioctl/ioctl_sg01.c
@@ -123,6 +123,7 @@ static void run(void)
}
static struct tst_test test = {
+ .timeout = 600,
.test_all = run,
.setup = setup,
.cleanup = cleanup,
--
1.8.3.1
More information about the ltp
mailing list