From 1e5423b5641adbf9ef73bdbbf4a9b7b7aa0f22c6 Mon Sep 17 00:00:00 2001 From: jlamothe Date: Thu, 9 Nov 2023 00:06:18 +0000 Subject: [PATCH] defined test_passing --- test/run-test.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/test/run-test.c b/test/run-test.c index 1f72e7e..3280114 100644 --- a/test/run-test.c +++ b/test/run-test.c @@ -24,12 +24,27 @@ #include "../9unit.h" #include "run-test.h" +// Internal Prototypes + +static void test_passing(TestState *); + // Public Functions void -test_run_test(TestState *) +test_run_test(TestState *s) { print("run_test()\n"); + test_passing(s); +} + +// Internal Functions + +static +void test_passing(TestState *s) +{ + void *oldptr = s->ptr; + print("\tpassing\n"); + s->ptr = oldptr; } //jl