All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] testsuite/smokey: net_client: skip late packet error in vm mode
@ 2021-08-06  0:11 Hongzhan Chen
  0 siblings, 0 replies; only message in thread
From: Hongzhan Chen @ 2021-08-06  0:11 UTC (permalink / raw
  To: xenomai

In vm mode, skip late packet error in functional test to avoid
test failure.

Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>
---
 testsuite/smokey/net_common/client.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuite/smokey/net_common/client.c b/testsuite/smokey/net_common/client.c
index d13d72918..02a9e7e6d 100644
--- a/testsuite/smokey/net_common/client.c
+++ b/testsuite/smokey/net_common/client.c
@@ -204,7 +204,7 @@ static int smokey_net_client_loop(struct smokey_net_client *client)
 		} while (err != -ETIMEDOUT);
 	}
 
-	if (glost || glate)
+	if (glost || (!smokey_on_vm && glate))
 		fprintf(stderr, "RTnet %s test failed", client->name);
 	if (glost) {
 		if (glost == limit)
@@ -218,7 +218,7 @@ static int smokey_net_client_loop(struct smokey_net_client *client)
 		fprintf(stderr, ", %Lu overruns", glate);
 	if (glost || glate)
 		fputc('\n', stderr);
-	err = glost || glate ? -EPROTO : 0;
+	err = glost || (!smokey_on_vm && glate) ? -EPROTO : 0;
 
   err:
 	sock = smokey_check_errno(__RT(close(sock)));
-- 
2.17.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-06  0:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-06  0:11 [PATCH v2] testsuite/smokey: net_client: skip late packet error in vm mode Hongzhan Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.