diff mbox series

[XTF,v1,2/2] tests/argo: fixup for recent xen

Message ID 20250416050443.919751-3-dmukhin@ford.com (mailing list archive)
State New
Headers show
Series xtf: integrate argo test | expand

Commit Message

Denis Mukhin April 16, 2025, 5:05 a.m. UTC
From: Denis Mukhin <dmukhin@ford.com>

Add fixup for own_domid under CONFIG_HAS_XENSTORE to make XTF argo test
can pass under x86 QEMU.

Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
Successful argo XTF run:
  https://gitlab.com/xen-project/people/dmukhin/xen/-/jobs/9733329882
---
 tests/argo/main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/argo/main.c b/tests/argo/main.c
index fa54aed..1e6b92f 100644
--- a/tests/argo/main.c
+++ b/tests/argo/main.c
@@ -301,14 +301,16 @@  static void clear_test_ring(void)
 
 void test_main(void)
 {
-    int own_domid;
+    int own_domid = 0;
     xen_argo_port_t test_aport = 1;
     const char simple_text[] = "a simple thing to send\n";
     const unsigned int msg_type = 0x12345678;
 
+#if defined(CONFIG_HAS_XENSTORE)
     own_domid = xtf_get_domid();
     if ( own_domid < 0 )
         return xtf_error("Error: could not determine domid of the test domain\n");
+#endif
 
     /* First test validates for Argo availability to gate further testing */
     if ( probe_for_argo(own_domid) )