summaryrefslogtreecommitdiff
path: root/tests/helpers.c
blob: 37afcae69bcc783b37b9d03d547c5a81102122ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

#include "lily-test.h"
#include "tests.h"

void _run_test(const char *name, const char* (*test)())
{
   printf("%s... ", name);
   const char *result = test();
   if (result != 0) {
      printf("FAILED: %s\n", result);
   }
   else
      printf("OK\n");
}