Commit 686126a8 authored by Jan Kiszka's avatar Jan Kiszka
Browse files

testsuite/smokey: rtdm: Give delayed close more time for running in QEMU

RTTST_RTIOC_RTDM_DEFER_CLOSE causes a 300 ms delay by the driver. We
only added 1 ms plus the open/close of the second device, and that was
sometimes too short when running in QEMU:

2021-06-18T18:58:41 FAILED run_rtdm:186: open returned -16 instead of 12 - Device or resource busy

Make it 100 ms in that case, to be safe.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent b8ed406e
......@@ -182,7 +182,7 @@ static int run_rtdm(struct smokey_test *t, int argc, char *const argv[])
check("open", open(devname, O_RDWR), -EBUSY);
dev2 = check("open", open(devname2, O_RDWR), dev);
check("close", close(dev2), 0);
usleep(smokey_on_vm ? 400000 : 301000);
dev = check("open", open(devname, O_RDWR), dev);
smokey_trace("Normal close");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment