diff options
author | John Snow <jsnow@redhat.com> | 2014-08-01 11:38:59 -0400 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-09-08 11:12:43 +0100 |
commit | 0142f88bff3dd5cb819c9900da1c1e0a4aae9c44 (patch) | |
tree | 2a9e9e3f01602162e7107d7699424dd42596c7f9 /tests/ide-test.c | |
parent | ec2f160538a24b72767e2afd1f0ba3085a35b79d (diff) | |
download | qemu-0142f88bff3dd5cb819c9900da1c1e0a4aae9c44.zip qemu-0142f88bff3dd5cb819c9900da1c1e0a4aae9c44.tar.gz qemu-0142f88bff3dd5cb819c9900da1c1e0a4aae9c44.tar.bz2 |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ide-test.c b/tests/ide-test.c index ffce6ed..b7a97e9 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(); } |