|
|
9ae3a8 |
From 79eec4a8ab4eb5897563cc140c0fc2ee0738dc0b Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
Date: Sat, 11 Jan 2014 18:00:04 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 14/22] i440fx-test: qtest_start() should be paired with qtest_end()
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
Message-id: <1389463208-6278-15-git-send-email-lersek@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 56627
|
|
|
9ae3a8 |
O-Subject: [RHEL-7.0 qemu-kvm PATCH 14/18] i440fx-test: qtest_start() should be paired with qtest_end()
|
|
|
9ae3a8 |
Bugzilla: 1032346
|
|
|
9ae3a8 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Amos Kong <akong@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Andrew Jones <drjones@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Similarly to commit 1d9358e6
|
|
|
9ae3a8 |
("libqtest: New qtest_end() to go with qtest_start()").
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
9ae3a8 |
(cherry picked from commit b817e3fb5401bfab49e3c212e6daa1ff1f5a4c9a)
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
tests/i440fx-test.c | 10 ++++------
|
|
|
9ae3a8 |
1 file changed, 4 insertions(+), 6 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
tests/i440fx-test.c | 10 ++++------
|
|
|
9ae3a8 |
1 files changed, 4 insertions(+), 6 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/tests/i440fx-test.c b/tests/i440fx-test.c
|
|
|
9ae3a8 |
index 65c786c..6ac46bf 100644
|
|
|
9ae3a8 |
--- a/tests/i440fx-test.c
|
|
|
9ae3a8 |
+++ b/tests/i440fx-test.c
|
|
|
9ae3a8 |
@@ -2,9 +2,11 @@
|
|
|
9ae3a8 |
* qtest I440FX test case
|
|
|
9ae3a8 |
*
|
|
|
9ae3a8 |
* Copyright IBM, Corp. 2012-2013
|
|
|
9ae3a8 |
+ * Copyright Red Hat, Inc. 2013
|
|
|
9ae3a8 |
*
|
|
|
9ae3a8 |
* Authors:
|
|
|
9ae3a8 |
* Anthony Liguori <aliguori@us.ibm.com>
|
|
|
9ae3a8 |
+ * Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
*
|
|
|
9ae3a8 |
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
|
9ae3a8 |
* See the COPYING file in the top-level directory.
|
|
|
9ae3a8 |
@@ -256,7 +258,6 @@ static void test_i440fx_pam(gconstpointer opaque)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
int main(int argc, char **argv)
|
|
|
9ae3a8 |
{
|
|
|
9ae3a8 |
- QTestState *s;
|
|
|
9ae3a8 |
TestData data;
|
|
|
9ae3a8 |
char *cmdline;
|
|
|
9ae3a8 |
int ret;
|
|
|
9ae3a8 |
@@ -266,20 +267,17 @@ int main(int argc, char **argv)
|
|
|
9ae3a8 |
data.num_cpus = 1;
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
cmdline = g_strdup_printf("-smp %d", data.num_cpus);
|
|
|
9ae3a8 |
- s = qtest_start(cmdline);
|
|
|
9ae3a8 |
+ qtest_start(cmdline);
|
|
|
9ae3a8 |
g_free(cmdline);
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
data.bus = qpci_init_pc();
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
g_test_add_data_func("/i440fx/defaults", &data, test_i440fx_defaults);
|
|
|
9ae3a8 |
g_test_add_data_func("/i440fx/pam", &data, test_i440fx_pam);
|
|
|
9ae3a8 |
-
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
ret = g_test_run();
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
- if (s) {
|
|
|
9ae3a8 |
- qtest_quit(s);
|
|
|
9ae3a8 |
- }
|
|
|
9ae3a8 |
+ qtest_end();
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
return ret;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|