From 73ae8ba0985dc7964a99b7912ffa5959bea1124b Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 22 Nov 2016 01:30:40 +0100 Subject: [PATCH] complete: Update test for unit test framework Signed-off-by: Joachim Nilsson --- tests/complete.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/complete.c b/tests/complete.c index 241a1ea..81bddad 100644 --- a/tests/complete.c +++ b/tests/complete.c @@ -23,13 +23,7 @@ */ #include -#include -#include -#include /* intptr_t */ - -#include "uev.h" - -#define UNUSED(arg) arg __attribute__ ((unused)) +#include "check.h" typedef struct { int counter; @@ -138,8 +132,7 @@ int main(void) uev_run(&ctx, 0); fprintf(stderr, "Period is %d must be 10: %s\n", period, 10 == period ? "OK" : "ERROR!"); - if (10 != period) - return 1; + fail_unless(10 == period); return 0; }