From 08bd1c94bf13834d5cfc363fc4f0d373e13a6260 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 14 Dec 2011 09:54:40 -0800 Subject: [PATCH] Added a test of Init to the tests. --- tests/api.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/api.c b/tests/api.c index a27fc78b2..6fac78ea8 100644 --- a/tests/api.c +++ b/tests/api.c @@ -1 +1,13 @@ /* api.c API unit tests */ +#include + +// 0 on success, otherwise fail +int test_CyaSSL_Init(void) +{ + int result = CyaSSL_Init(); + + if (result) printf("test_CyaSSL_Init(): failed\n"); + + return (result); +} +