All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] acpi unit-test: Remove temporary disk after test
@ 2013-12-26  4:53 ` Fam Zheng
  0 siblings, 0 replies; 4+ messages in thread
From: Fam Zheng @ 2013-12-26  4:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Paolo Bonzini, Michael Tokarev, Marcel Apfelbaum

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 tests/acpi-test.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/acpi-test.c b/tests/acpi-test.c
index ca83b1d6..df1af83 100644
--- a/tests/acpi-test.c
+++ b/tests/acpi-test.c
@@ -382,6 +382,7 @@ int main(int argc, char *argv[])
 {
     const char *arch = qtest_get_arch();
     FILE *f = fopen(disk, "w");
+    int ret;
     fwrite(boot_sector, 1, sizeof boot_sector, f);
     fclose(f);
 
@@ -390,5 +391,7 @@ int main(int argc, char *argv[])
     if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) {
         qtest_add_func("acpi/tcg", test_acpi_tcg);
     }
-    return g_test_run();
+    ret = g_test_run();
+    unlink(disk);
+    return ret;
 }
-- 
1.8.5.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Qemu-devel] [PATCH] acpi unit-test: Remove temporary disk after test
@ 2013-12-26  4:53 ` Fam Zheng
  0 siblings, 0 replies; 4+ messages in thread
From: Fam Zheng @ 2013-12-26  4:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Paolo Bonzini, Michael Tokarev, Marcel Apfelbaum

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 tests/acpi-test.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/acpi-test.c b/tests/acpi-test.c
index ca83b1d6..df1af83 100644
--- a/tests/acpi-test.c
+++ b/tests/acpi-test.c
@@ -382,6 +382,7 @@ int main(int argc, char *argv[])
 {
     const char *arch = qtest_get_arch();
     FILE *f = fopen(disk, "w");
+    int ret;
     fwrite(boot_sector, 1, sizeof boot_sector, f);
     fclose(f);
 
@@ -390,5 +391,7 @@ int main(int argc, char *argv[])
     if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) {
         qtest_add_func("acpi/tcg", test_acpi_tcg);
     }
-    return g_test_run();
+    ret = g_test_run();
+    unlink(disk);
+    return ret;
 }
-- 
1.8.5.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-trivial] [PATCH] acpi unit-test: Remove temporary disk after test
  2013-12-26  4:53 ` [Qemu-devel] " Fam Zheng
@ 2013-12-27 21:58   ` Michael Tokarev
  -1 siblings, 0 replies; 4+ messages in thread
From: Michael Tokarev @ 2013-12-27 21:58 UTC (permalink / raw)
  To: Fam Zheng; +Cc: qemu-trivial, Paolo Bonzini, qemu-devel, Marcel Apfelbaum

26.12.2013 08:53, Fam Zheng write:
> ---
>  tests/acpi-test.c | 5 ++++-

Thanks, applied to the trivial-patches queue.

/mjt


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [Qemu-trivial] [PATCH] acpi unit-test: Remove temporary disk after test
@ 2013-12-27 21:58   ` Michael Tokarev
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Tokarev @ 2013-12-27 21:58 UTC (permalink / raw)
  To: Fam Zheng; +Cc: qemu-trivial, Paolo Bonzini, qemu-devel, Marcel Apfelbaum

26.12.2013 08:53, Fam Zheng write:
> ---
>  tests/acpi-test.c | 5 ++++-

Thanks, applied to the trivial-patches queue.

/mjt

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-27 21:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-26  4:53 [Qemu-trivial] [PATCH] acpi unit-test: Remove temporary disk after test Fam Zheng
2013-12-26  4:53 ` [Qemu-devel] " Fam Zheng
2013-12-27 21:58 ` [Qemu-trivial] " Michael Tokarev
2013-12-27 21:58   ` [Qemu-devel] " Michael Tokarev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.