test-char: abort on serial test error
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 26 Jul 2020 15:30:23 +0000 (19:30 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 28 Jul 2020 14:27:59 +0000 (18:27 +0400)
We are having issues debugging and bisecting this issue that happen
mostly on patchew. Let's make it abort where it failed to gather some
new informations.

Suggested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
tests/test-char.c

index 614bdac2df8c38fe018dfe19d9273bb2e0327414..d35cc839bc60db1884c3f265629b40256cbfb6bb 100644 (file)
@@ -1200,7 +1200,7 @@ static void char_serial_test(void)
 
     /* test tty alias */
     qemu_opt_set(opts, "backend", "tty", &error_abort);
-    chr = qemu_chr_new_from_opts(opts, NULL, NULL);
+    chr = qemu_chr_new_from_opts(opts, NULL, &error_abort);
     g_assert_nonnull(chr);
     object_unparent(OBJECT(chr));