summary refs log tree commit diff stats
path: root/tests/ide-test.c
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2014-08-01 11:38:59 -0400
committerStefan Hajnoczi <stefanha@redhat.com>2014-09-08 11:12:43 +0100
commit0142f88bff3dd5cb819c9900da1c1e0a4aae9c44 (patch)
tree2a9e9e3f01602162e7107d7699424dd42596c7f9 /tests/ide-test.c
parentec2f160538a24b72767e2afd1f0ba3085a35b79d (diff)
downloadfocaccia-qemu-0142f88bff3dd5cb819c9900da1c1e0a4aae9c44.tar.gz
focaccia-qemu-0142f88bff3dd5cb819c9900da1c1e0a4aae9c44.zip
qtest/ide: Uninitialize PC allocator
Use the new call to pc_alloc_uninit
as a test for the new pathways.

The leak checking / assert pathways are
not enabled in this patch, leaving this
as an option to future test writers.

Signed-off-by: John Snow <jsnow@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/ide-test.c')
-rw-r--r--tests/ide-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ide-test.c b/tests/ide-test.c
index ffce6ed669..b7a97e9362 100644
--- a/tests/ide-test.c
+++ b/tests/ide-test.c
@@ -126,6 +126,8 @@ static void ide_test_start(const char *cmdline_fmt, ...)
 
 static void ide_test_quit(void)
 {
+    pc_alloc_uninit(guest_malloc);
+    guest_malloc = NULL;
     qtest_end();
 }