updated to ERRLOG -> CTFAIL
diff --git a/tests/42-real-life-OK.asn1.-PR b/tests/42-real-life-OK.asn1.-PR
index 37b5858..309aad1 100644
--- a/tests/42-real-life-OK.asn1.-PR
+++ b/tests/42-real-life-OK.asn1.-PR
@@ -45,7 +45,7 @@
size_t size;
if(!sptr) {
- _ASN_ERRLOG(app_errlog, app_key,
+ _ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
@@ -56,9 +56,9 @@
if((size >= 1)) {
/* Perform validation of the inner elements */
- return td->check_constraints(td, sptr, app_errlog, app_key);
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
} else {
- _ASN_ERRLOG(app_errlog, app_key,
+ _ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
@@ -218,7 +218,7 @@
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
if(!sptr) {
- _ASN_ERRLOG(app_errlog, app_key,
+ _ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
@@ -401,7 +401,7 @@
size_t size;
if(!sptr) {
- _ASN_ERRLOG(app_errlog, app_key,
+ _ASN_CTFAIL(app_key, td, sptr,
"%s: value not given (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;
@@ -412,9 +412,9 @@
if((size >= 1)) {
/* Perform validation of the inner elements */
- return td->check_constraints(td, sptr, app_errlog, app_key);
+ return td->check_constraints(td, sptr, ctfailcb, app_key);
} else {
- _ASN_ERRLOG(app_errlog, app_key,
+ _ASN_CTFAIL(app_key, td, sptr,
"%s: constraint failed (%s:%d)",
td->name, __FILE__, __LINE__);
return -1;