aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnton Nefedov <anton.nefedov@virtuozzo.com>2017-07-06 15:08:53 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2017-07-14 11:04:33 +0200
commit12f043c240580b5b4b2d67d8deb29537d679e3a2 (patch)
tree7887990277777c27633bcd75ab3df93839a44a2d /tests
parent3065070153ef4235659d821c0d6fa28fd0630c57 (diff)
downloadqemu-12f043c240580b5b4b2d67d8deb29537d679e3a2.zip
qemu-12f043c240580b5b4b2d67d8deb29537d679e3a2.tar.gz
qemu-12f043c240580b5b4b2d67d8deb29537d679e3a2.tar.bz2
test-char: destroy chardev-udp after test
this is only not a problem if the test is last in a suite, otherwise it makes the following main_loop() calls to fail Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <1499342940-56739-7-git-send-email-anton.nefedov@virtuozzo.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-char.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-char.c b/tests/test-char.c
index 38aaa27..536536e 100644
--- a/tests/test-char.c
+++ b/tests/test-char.c
@@ -450,6 +450,7 @@ static void char_udp_test(void)
close(sock);
g_free(tmp);
+ qemu_chr_fe_deinit(&be, true);
}
#ifdef HAVE_CHARDEV_SERIAL