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>
This commit is contained in:
Anton Nefedov 2017-07-06 15:08:53 +03:00 committed by Paolo Bonzini
parent 3065070153
commit 12f043c240
1 changed files with 1 additions and 0 deletions

View File

@ -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