test/direct_api_param_test.c
static int
unexpected_err(IMB_MGR *mgr, const IMB_ERR expected_err, const char *func_desc)
{
        const IMB_ERR err = imb_get_errno(mgr);

        if (err != expected_err) {
                printf("%s error: expected %s, got %s\n", func_desc,
                       imb_get_strerror(expected_err), imb_get_strerror(err));
                return 1;
        }
        return 0;
}
/* Check if imb_errno contains unexpected value */
Check if imb_errno contains unexpected value
Check if imb_errno contains unexpected value
static int
unexpected_err(IMB_MGR *mgr, const IMB_ERR expected_err, const char *func_desc)
{
        const IMB_ERR err = imb_get_errno(mgr);
        if (err != expected_err) {
                printf("%s error: expected %s, got %s\n", func_desc,
                       imb_get_strerror(expected_err), imb_get_strerror(err));
                return 1;
        }
        return 0;
}
static int unexpected_err ( IMB_MGR * mgr , const IMB_ERR expected_err , const char * func_desc ) { const IMB_ERR err = imb_get_errno ( mgr ) ; if ( err != expected_err ) { printf ( " \n " , func_desc , imb_get_strerror ( expected_err ) , imb_get_strerror ( err ) ) ; return 1 ; } return 0 ; }
Check if imb_errno contains unexpected value
Check if imb_errno contains unexpected value