projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add code to run test, get malloc counts
[openssl.git]
/
test
/
dtls_mtu_test.c
diff --git
a/test/dtls_mtu_test.c
b/test/dtls_mtu_test.c
index 50f952b2cea74c19506f7cc803d06d0b8a50cdc3..dff65a7811b8889cfd73d07283f31058056ba625 100644
(file)
--- a/
test/dtls_mtu_test.c
+++ b/
test/dtls_mtu_test.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2016
-2017
The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@
-73,7
+73,7
@@
static int mtu_test(SSL_CTX *ctx, const char *cs, int no_etm)
goto end;
if (debug)
goto end;
if (debug)
-
printf("Channel established\n
");
+
TEST_info("Channel established
");
/* For record MTU values between 500 and 539, call DTLS_get_data_mtu()
* to query the payload MTU which will fit. */
/* For record MTU values between 500 and 539, call DTLS_get_data_mtu()
* to query the payload MTU which will fit. */
@@
-104,7
+104,7
@@
static int mtu_test(SSL_CTX *ctx, const char *cs, int no_etm)
goto end;
reclen = BIO_read(sc_bio, buf, sizeof(buf));
if (debug)
goto end;
reclen = BIO_read(sc_bio, buf, sizeof(buf));
if (debug)
-
printf("record %"OSSLzu" for payload %"OSSLzu"\n
", reclen, s);
+
TEST_info("record %zu for payload %zu
", reclen, s);
for (i = 0; i < 30; i++) {
/* DTLS_get_data_mtu() with record MTU 500+i returned mtus[i] ... */
for (i = 0; i < 30; i++) {
/* DTLS_get_data_mtu() with record MTU 500+i returned mtus[i] ... */
@@
-189,7
+189,8
@@
static int run_mtu_tests(void)
return ret;
}
return ret;
}
-
void register
_tests()
+
int setup
_tests()
{
ADD_TEST(run_mtu_tests);
{
ADD_TEST(run_mtu_tests);
+ return 1;
}
}