From 01c5f33c8a1c163a4e02e486ceff3b1556594514 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 5 Jan 2024 18:51:41 +0100 Subject: Update HTTP1; Error handling for secure random --- source/tests/http1.test.c | 5 ++++- source/tests/secure_random.test.c | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'source/tests') diff --git a/source/tests/http1.test.c b/source/tests/http1.test.c index 1808785..09da5f4 100644 --- a/source/tests/http1.test.c +++ b/source/tests/http1.test.c @@ -3,6 +3,9 @@ #define KIT_TEST_FILE http1 #include "../kit/kit_test.h" -TEST("http1") { } +TEST("http1") { + // TODO + // +} #undef KIT_TEST_FILE diff --git a/source/tests/secure_random.test.c b/source/tests/secure_random.test.c index efcf327..62021b1 100644 --- a/source/tests/secure_random.test.c +++ b/source/tests/secure_random.test.c @@ -8,8 +8,8 @@ TEST("secure random") { int v[20]; memset(v, 0, sizeof v); - secure_random(40, v); - secure_random(40, v + 10); + REQUIRE_EQ(secure_random(40, v), KIT_OK); + REQUIRE_EQ(secure_random(40, v + 10), KIT_OK); int repeats = 0; -- cgit v1.2.3