diff --git a/asn1c/tests/check-62.c b/asn1c/tests/check-62.c index 6c51468e1cac4436227a6ca5701e050cadcd3dcc..b0021ab1377a0031b658cf501a029b8e05d6ef58 100644 --- a/asn1c/tests/check-62.c +++ b/asn1c/tests/check-62.c @@ -125,10 +125,13 @@ process_data(enum expectation expectation, char *fbuf, int size) { assert(buf_offset > 0 && buf_offset < size); break; case EXP_BROKEN: - assert(buf_offset == size); - assert(memcmp(buf, fbuf, buf_offset) == 0); + assert(buf_offset != size + || memcmp(buf, fbuf, buf_offset)); break; case EXP_OK: + printf("%d %d\n", buf_offset, size); + assert(buf_offset == size); + assert(memcmp(buf, fbuf, buf_offset) == 0); break; }