[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 17/17] acpi unit-test: Remove temporary disk after te
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 17/17] acpi unit-test: Remove temporary disk after test |
Date: |
Sat, 28 Dec 2013 02:07:30 +0400 |
From: Fam Zheng <address@hidden>
Signed-off-by: Fam Zheng <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
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 ca83b1d..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.7.10.4
- [Qemu-devel] [PULL 05/17] exynos4210: Use macro ARRAY_SIZE where possible, (continued)
- [Qemu-devel] [PULL 05/17] exynos4210: Use macro ARRAY_SIZE where possible, Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 03/17] misc: Use macro ARRAY_SIZE where possible, Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 02/17] openrisc: Fix spelling in comment (transaltion -> translation), Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 07/17] x86: only allow real mode to access 32bit without LMA, Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 08/17] vl: make boot_strict variable static (not used outside vl.c), Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 15/17] pxa27x: Add 'const' attribute to keyboard maps, Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 06/17] linux-user: Use macro TARGET_NSIG_WORDS where possible, Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 11/17] configure: Rewrite code for help message, Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 09/17] fix -boot strict regressed in commit 6ef4716, Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 12/17] configure: Python tests must be done before help message, Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 17/17] acpi unit-test: Remove temporary disk after test,
Michael Tokarev <=
- [Qemu-devel] [PULL 04/17] ui/cocoa: Use macro ARRAY_SIZE where possible, Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 14/17] pxa27x: Reduce size of keyboard matrix mapping, Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 16/17] mainstone: Fix duplicate array values for key 'space', Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 10/17] target-m68k: Replace qemu_assert by hw_error, Michael Tokarev, 2013/12/27
- [Qemu-devel] [PULL 13/17] doc: Mention chardev:id in available devices for -serial, Michael Tokarev, 2013/12/27