diff mbox

[v5,06/13] test-char: destroy chardev-udp after test

Message ID 1499263324-15184-7-git-send-email-anton.nefedov@virtuozzo.com (mailing list archive)
State New, archived
Headers show

Commit Message

Anton Nefedov July 5, 2017, 2:01 p.m. UTC
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>
---
 tests/test-char.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/tests/test-char.c b/tests/test-char.c
index 527b785..6add1aa 100644
--- a/tests/test-char.c
+++ b/tests/test-char.c
@@ -454,6 +454,7 @@  static void char_udp_test(void)
 
     close(sock);
     g_free(tmp);
+    qemu_chr_fe_deinit(&be, true);
 }
 
 #ifdef HAVE_CHARDEV_SERIAL