Ejemplo n.º 1
0
void trans_check(MS_Mon_Transid_Type trans) {

    if (!TRANSID_EQUALS(trans, exp_trans)) {
        char exp_transbuf[100];
        char transbuf[100];
        util_format_transid(exp_transbuf, exp_trans);
        util_format_transid(transbuf, trans);
        printf("client=%d, expected trans=%s, actual trans=%s\n",
               client, exp_transbuf, transbuf);
    }
    assert(TRANSID_EQUALS(trans, exp_trans));
}
Ejemplo n.º 2
0
void trans_check(MS_Mon_Transid_Type  trans,
                 MS_Mon_Transseq_Type startid) {

    if (!TRANSID_EQUALS(trans, exp_trans) || !TRANSSEQ_EQUALS(startid, exp_startid)) {
        char exp_startidbuf[100];
        char exp_transbuf[100];
        char transbuf[100];
        char startidbuf[100];
        util_format_transid(exp_transbuf, exp_trans);
        util_format_startid(exp_startidbuf, exp_startid);
        util_format_transid(transbuf, trans);
        util_format_startid(startidbuf, startid);
        printf("client=%d, expected trans=%s, actual trans=%s, expected startid=%s, startid=%s\n",
               client, exp_transbuf, transbuf, exp_startidbuf, startidbuf);
    }
    assert(TRANSID_EQUALS(trans, exp_trans));
    assert(TRANSSEQ_EQUALS(startid, exp_startid));
}