]> xenbits.xensource.com Git - people/iwj/ring3-xl-test.git/commitdiff
test_domain_suspend: Clean up temporary suspend files
authorEuan Harris <euan.harris@citrix.com>
Fri, 19 Jun 2015 13:59:31 +0000 (13:59 +0000)
committerEuan Harris <euan.harris@citrix.com>
Fri, 19 Jun 2015 13:59:31 +0000 (13:59 +0000)
Signed-off-by: Euan Harris <euan.harris@citrix.com>
test_domain_suspend.c

index 6d0ce998db85f040a40685821e9bb52ee28f8cbe..63444a7de043ca8171735b909ea9a42db92c378a 100644 (file)
@@ -67,6 +67,7 @@ void *testcase(struct test *tc)
                It should have returned successfully.
              */
             close(fd);
+            unlink(template);
             printf("libxl_domain_suspend returned %d\n",
                    ev.u.callback_event.rc);
             assert(ev.u.callback_event.rc == 0);
@@ -90,6 +91,8 @@ void *testcase(struct test *tc)
         /* The API call's return code should indicate that it was cancelled */
         wait_for(tc, EV_LIBXL_CALLBACK, &ev);
         close(fd);
+        printf("Removing %s\n", template);
+        unlink(template);
         printf("libxl_domain_suspend returned %d\n",
                ev.u.callback_event.rc);
         assert(ev.u.callback_event.rc == ERROR_CANCELLED