mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
tests quic: fix error handling.
This commit is contained in:
@ -1775,9 +1775,10 @@ int QuicTest(void)
|
|||||||
#endif /* HAVE_SESSION_TICKET */
|
#endif /* HAVE_SESSION_TICKET */
|
||||||
|
|
||||||
leave:
|
leave:
|
||||||
if (ret != TEST_SUCCESS)
|
if (ret != TEST_SUCCESS) {
|
||||||
printf(" FAILED: some tests did not pass.\n");
|
printf(" FAILED: some tests did not pass.\n");
|
||||||
|
}
|
||||||
printf(" End QUIC Tests\n");
|
printf(" End QUIC Tests\n");
|
||||||
#endif
|
#endif
|
||||||
return ret;
|
return ret == TEST_SUCCESS ? 0 : -1;
|
||||||
}
|
}
|
||||||
|
@ -245,7 +245,7 @@ int unit_test(int argc, char** argv)
|
|||||||
#endif /* WOLFSSL_W64_WRAPPER */
|
#endif /* WOLFSSL_W64_WRAPPER */
|
||||||
|
|
||||||
#ifdef WOLFSSL_QUIC
|
#ifdef WOLFSSL_QUIC
|
||||||
if ((ret = QuicTest()) != TEST_SUCCESS) {
|
if ((ret = QuicTest()) != 0) {
|
||||||
printf("quic test failed with %d\n", ret);
|
printf("quic test failed with %d\n", ret);
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user