Skip to content

Commit

Permalink
Disable 3 tests for which LibreSSL gives refcount errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sonertari committed Sep 16, 2018
1 parent d2e9ab4 commit 2998ad7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cachefkcrt.t.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,12 @@ START_TEST(cache_fkcrt_04)
cachemgr_fini();
fail_unless(c1->references == 1, "refcount != 1");
X509_free(c2);
#ifndef LIBRESSL_VERSION_NUMBER
/* deliberate access of free'd X509* */
fail_unless(c1->references == 0, "refcount != 0");
#else /* LIBRESSL_VERSION_NUMBER */
fprintf(stderr, "test cache_fkcrt_04 omitted because LibreSSL fails with refcount != 0\n");
#endif /* LIBRESSL_VERSION_NUMBER */
fail_unless(cachemgr_preinit() != -1, "reinit");
}
END_TEST
Expand Down
4 changes: 4 additions & 0 deletions cachetgcrt.t.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,12 @@ START_TEST(cache_tgcrt_04)
cachemgr_fini();
fail_unless(c1->references == 1, "refcount != 1");
cert_free(c2);
#ifndef LIBRESSL_VERSION_NUMBER
/* deliberate access of free'd cert_t* */
fail_unless(c1->references == 0, "refcount != 0");
#else /* LIBRESSL_VERSION_NUMBER */
fprintf(stderr, "test cache_tgcrt_04 omitted because LibreSSL fails with refcount != 0\n");
#endif /* LIBRESSL_VERSION_NUMBER */
fail_unless(cachemgr_preinit() != -1, "reinit");
}
END_TEST
Expand Down
4 changes: 4 additions & 0 deletions cert.t.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ START_TEST(cert_refcount_inc_01)
cert_free(c);
fail_unless(c->references == 1, "refcount mismatch");
cert_free(c);
#ifndef LIBRESSL_VERSION_NUMBER
/* deliberate access after last free() */
fail_unless(c->references == 0, "refcount mismatch");
#else /* LIBRESSL_VERSION_NUMBER */
fprintf(stderr, "test cert_refcount_inc_01 omitted because LibreSSL fails with refcount mismatch\n");
#endif /* LIBRESSL_VERSION_NUMBER */
}
END_TEST

Expand Down

0 comments on commit 2998ad7

Please sign in to comment.