Skip to contentSkip to conversation

test-char: abort on serial test error

PATCH New Marc-André Lureau 1 participant 1 message Jul 26, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test-char: abort on serial test error

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.

---
 tests/test-char.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/test-char.c +1 -1
index 614bdac2df8..d35cc839bc6 100644
@@ -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));
 
Signature · 1 line
2.28.0.rc1.6.gae46588be0