com_err("krb5_decode_test", retval, "while decoding %s", typestring);\
error_count++;\
}\
- assert(comparator(&ref,var),typestring);\
+ test(comparator(&ref,var),typestring);\
printf("%s\n",description);\
krb5_free_data_contents(test_context, &code);\
cleanup(test_context, var);
}
retval = decode_krb5_authdata(&code,&var);
if(retval) com_err("decoding authorization_data",retval,"");
- assert(ktest_equal_authorization_data(ref,var),"authorization_data\n")
+ test(ktest_equal_authorization_data(ref,var),"authorization_data\n")
krb5_free_data_contents(test_context, &code);
krb5_free_authdata(test_context, var);
ktest_destroy_authorization_data(&ref);
}
retval = decode_krb5_padata_sequence(&code,&var);
if(retval) com_err("decoding padata_sequence",retval,"");
- assert(ktest_equal_sequence_of_pa_data(ref,var),"pa_data\n");
+ test(ktest_equal_sequence_of_pa_data(ref,var),"pa_data\n");
krb5_free_pa_data(test_context, var);
krb5_free_data_contents(test_context, &code);
ktest_destroy_pa_data_array(&ref);
}
retval = decode_krb5_padata_sequence(&code,&var);
if(retval) com_err("decoding padata_sequence (empty)",retval,"");
- assert(ktest_equal_sequence_of_pa_data(ref,var),"pa_data (empty)\n");
+ test(ktest_equal_sequence_of_pa_data(ref,var),"pa_data (empty)\n");
krb5_free_pa_data(test_context, var);
krb5_free_data_contents(test_context, &code);
ktest_destroy_pa_data_array(&ref);
if(retval){
com_err("krb5_decode_test", retval, "while decoding etype_info");
}
- assert(ktest_equal_etype_info(ref,var),"etype_info\n");
+ test(ktest_equal_etype_info(ref,var),"etype_info\n");
ktest_destroy_etype_info(var);
ktest_destroy_etype_info_entry(ref[2]); ref[2] = 0;
com_err("krb5_decode_test", retval,
"while decoding etype_info (only one)");
}
- assert(ktest_equal_etype_info(ref,var),"etype_info (only one)\n");
+ test(ktest_equal_etype_info(ref,var),"etype_info (only one)\n");
ktest_destroy_etype_info(var);
ktest_destroy_etype_info_entry(ref[0]); ref[0] = 0;
com_err("krb5_decode_test", retval,
"while decoding etype_info (no info)");
}
- assert(ktest_equal_etype_info(ref,var),"etype_info (no info)\n");
+ test(ktest_equal_etype_info(ref,var),"etype_info (no info)\n");
krb5_free_data_contents(test_context, &code);
ktest_destroy_etype_info(var);
setup(kdcr,kdc_rep,"kdc_rep",ktest_make_sample_kdc_rep);
/* kdcr.msg_type = KRB5_TGS_REP;
- assert(encode_krb5_as_rep(&kdcr,&code) == KRB5_BADMSGTYPE,
+ test(encode_krb5_as_rep(&kdcr,&code) == KRB5_BADMSGTYPE,
"encode_krb5_as_rep type check\n");
ktest_destroy_data(&code);*/
setup(kdcr,kdc_rep,"kdc_rep",ktest_make_sample_kdc_rep);
/* kdcr.msg_type = KRB5_AS_REP;
- assert(encode_krb5_tgs_rep(&kdcr,&code) == KRB5_BADMSGTYPE,
+ test(encode_krb5_tgs_rep(&kdcr,&code) == KRB5_BADMSGTYPE,
"encode_krb5_tgs_rep type check\n");*/
kdcr.msg_type = KRB5_TGS_REP;