@@ -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) )