Skip to contentSkip to conversation

testsuite: smokey: vxworkstests: Raise another timeout in VM environments

PATCH New Jan Kiszka 1 participant 1 message Nov 26

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 testsuite: smokey: vxworkstests: Raise another timeout in VM environments

From: Jan Kiszka <[email protected]>

Similar to 79df634b5b23. And this was already observed failing in CI.

---
 testsuite/smokey/vxworkstests/msgQ-2.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
testsuite/smokey/vxworkstests/msgQ-2.c +6 -1
index 669c064e23..a6945976e1 100644
@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <boilerplate/ancillaries.h>
@@ -8,6 +9,8 @@
 
 static struct traceobj trobj;
 
+static bool on_vm;
+
 static int tseq[] = {
 	3, 4, 5, 6,
 	1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,
@@ -82,7 +85,7 @@ static void rootTask(long arg, ...)
 
 	traceobj_mark(&trobj, 6);
 
-	ret = taskDelay(10);
+	ret = taskDelay(on_vm ? 300 : 10);
 	traceobj_assert(&trobj, ret == OK);
 
 	traceobj_mark(&trobj, 7);
@@ -99,6 +102,8 @@ int main(int argc, char *const argv[])
 {
 	TASK_ID tid;
 
+	on_vm = argc > 1 && strcmp(argv[1], "--vm") == 0;
+
 	traceobj_init(&trobj, argv[0], sizeof(tseq) / sizeof(int));
 
 	tid = taskSpawn("rootTask", 50,	0, 0, rootTask,
Signature · 1 line
2.47.3