tests quic: fix error handling.

This commit is contained in:
jordan
2025-03-07 08:08:37 -05:00
parent 6a45c8ee0e
commit cad2189e80
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;
}