mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
tests quic: fix error handling.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user