blob: 42a0724d3ba480c915ac2e0c588c5c0d96fc571a (
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");
}
|