Commit 34a6d653 authored by Jan Kiszka's avatar Jan Kiszka
Browse files

testsuite/smokey: net: Ignore late or lost packets when running in VM

Do not fail the test if packets arrive late or are lost due to the
delays a VM, specifically an emulator like QEMU, may bring. Only if all
packets are lost, something is wrong and should be reported.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent f31477a4
......@@ -204,6 +204,12 @@ static int smokey_net_client_loop(struct smokey_net_client *client)
} while (err != -ETIMEDOUT);
if (smokey_on_vm) {
glate = 0; /* ignore late arrivals */
if (glost != limit)
glost = 0; /* ignore some lost packets, not all */
if (glost || glate)
fprintf(stderr, "RTnet %s test failed", client->name);
if (glost) {
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