]> xenbits.xensource.com Git - people/iwj/ring3-xl-test.git/commitdiff
XXX test_domain_create_new: Initialise config every time
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 23 Jun 2015 17:41:45 +0000 (18:41 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 23 Jun 2015 17:42:45 +0000 (18:42 +0100)
The config may be modified by libxl_domain_create.  There appears on
my system to be some bug in the NUMA handling which means that reusing
the config causes breakage.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
test_domain_create_new.c

index 163b19b8a8dcfd16477837b42fa8b0e160a01bd1..3481c6ed2b36e253af5261a58367354ad4c961e6 100644 (file)
@@ -30,17 +30,17 @@ void *testcase(struct test *tc)
     int count;
     libxl_domain_config dc;
 
-    init_domain_config(&dc, "test_domain_create_new",
-                       "resources/vmlinuz-4.0.4-301.fc22.x86_64",
-                       "resources/initrd.xen-4.0.4-301.fc22.x86_64",
-                       "resources/Fedora-Cloud-Base-22-20150521.x86_64.qcow2",
-                       "resources/cloudinit.iso");
-
     for (count = 1; count < 100; count++) {
         uint32_t domid;
         struct event ev;
         int rc;
 
+        init_domain_config(&dc, "test_domain_create_new",
+                           "resources/vmlinuz-4.0.4-301.fc22.x86_64",
+                           "resources/initrd.xen-4.0.4-301.fc22.x86_64",
+                    "resources/Fedora-Cloud-Base-22-20150521.x86_64.qcow2",
+                           "resources/cloudinit.iso");
+
         printf("\n****** Will cancel after %d events ******\n", count);
 
         do_domain_create(tc, &dc, &domid);