static void test_dispatch_cmd_error(void)

{

    QDict *req = qdict_new();

    QObject *resp;



    qdict_put_obj(req, "execute", QOBJECT(qstring_from_str("user_def_cmd2")));



    resp = qmp_dispatch(QOBJECT(req));

    assert(resp != NULL);

    assert(qdict_haskey(qobject_to_qdict(resp), "error"));

    g_print("\nresp: %s\n", qstring_get_str(qobject_to_json_pretty(resp)));



    qobject_decref(resp);

    QDECREF(req);

}

static void test_dispatch_cmd_error(void)

{

    QDict *req = qdict_new();

    QObject *resp;



    qdict_put_obj(req, "execute", QOBJECT(qstring_from_str("user_def_cmd2")));



    resp = qmp_dispatch(QOBJECT(req));

    assert(resp != NULL);

    assert(qdict_haskey(qobject_to_qdict(resp), "error"));

    g_print("\nresp: %s\n", qstring_get_str(qobject_to_json_pretty(resp)));



    qobject_decref(resp);

    QDECREF(req);

}

static void FUNC_0(void)

{

    QDict *req = qdict_new();

    QObject *resp;



    qdict_put_obj(req, "execute", QOBJECT(qstring_from_str("user_def_cmd2")));



    resp = qmp_dispatch(QOBJECT(req));

    assert(resp != NULL);

    assert(qdict_haskey(qobject_to_qdict(resp), "error"));

    g_print("\nresp: %s\n", qstring_get_str(qobject_to_json_pretty(resp)));



    qobject_decref(resp);

    QDECREF(req);

}

static void FUNC_0(void)
{ QDict *req = qdict_new(); QObject *resp; qdict_put_obj(req, "execute", QOBJECT(qstring_from_str("user_def_cmd2"))); resp = qmp_dispatch(QOBJECT(req)); assert(resp != NULL); assert(qdict_haskey(qobject_to_qdict(resp), "error")); g_print("\nresp: %s\n", qstring_get_str(qobject_to_json_pretty(resp))); qobject_decref(resp); QDECREF(req); }