aboutsummaryrefslogtreecommitdiff
path: root/tests/qdev-monitor-test.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-03-06 10:12:53 +0100
committerAndreas Färber <afaerber@suse.de>2014-03-12 20:13:02 +0100
commit49649f23db977137c031a21eee2f0521404f6710 (patch)
tree69e9d6d7e4cde67cea2514f9c456e07ab234a7bc /tests/qdev-monitor-test.c
parenta3d7cbc1397bf01249b5c39dd1e285bd6aa818dc (diff)
qdev-monitor-test: Don't test human-readable error message
Test the error class instead. Expecting a specific message is fragile. In fact, it broke once already, in commit 75884af. Restore the test of error member "class" dropped there, and drop the test of error member "desc". There are no other tests of "desc" as far as I can tell. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'tests/qdev-monitor-test.c')
-rw-r--r--tests/qdev-monitor-test.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/qdev-monitor-test.c b/tests/qdev-monitor-test.c
index eefaab823a..e20ffd67a7 100644
--- a/tests/qdev-monitor-test.c
+++ b/tests/qdev-monitor-test.c
@@ -32,9 +32,7 @@ static void test_device_add(void)
"}}");
g_assert(response);
error = qdict_get_qdict(response, "error");
- g_assert_cmpstr(qdict_get_try_str(error, "desc"),
- ==,
- "Device needs media, but drive is empty");
+ g_assert_cmpstr(qdict_get_try_str(error, "class"), ==, "GenericError");
QDECREF(response);
/* Delete the drive */