diff --git a/tests/quic.c b/tests/quic.c index b87ef63f3..58c435f5a 100644 --- a/tests/quic.c +++ b/tests/quic.c @@ -1775,9 +1775,10 @@ int QuicTest(void) #endif /* HAVE_SESSION_TICKET */ leave: - if (ret != TEST_SUCCESS) + if (ret != TEST_SUCCESS) { printf(" FAILED: some tests did not pass.\n"); + } printf(" End QUIC Tests\n"); #endif - return ret; + return ret == TEST_SUCCESS ? 0 : -1; } diff --git a/tests/unit.c b/tests/unit.c index 4f98418e4..432ce61fb 100644 --- a/tests/unit.c +++ b/tests/unit.c @@ -245,7 +245,7 @@ int unit_test(int argc, char** argv) #endif /* WOLFSSL_W64_WRAPPER */ #ifdef WOLFSSL_QUIC - if ((ret = QuicTest()) != TEST_SUCCESS) { + if ((ret = QuicTest()) != 0) { printf("quic test failed with %d\n", ret); goto exit; }