diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qmp-test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qmp-test.c b/tests/qmp-test.c index 7b3ba17..4ae2245 100644 --- a/tests/qmp-test.c +++ b/tests/qmp-test.c @@ -94,6 +94,10 @@ static void test_malformed(QTestState *qts) /* lexical error: interpolation */ qtest_qmp_send_raw(qts, "%%p\n"); + /* two errors, one for "%", one for "p" */ + resp = qtest_qmp_receive(qts); + g_assert_cmpstr(get_error_class(resp), ==, "GenericError"); + qobject_unref(resp); resp = qtest_qmp_receive(qts); g_assert_cmpstr(get_error_class(resp), ==, "GenericError"); qobject_unref(resp); |