aboutsummaryrefslogtreecommitdiff
path: root/test.c
blob: e8bf44a01c3824abde7b3b70f555fa258ec1d99a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>

#include "service_provider.h"
#include "trusted_module.h"

void check(const char *name, int condition)
{
    printf("%s: %s", name, condition ? "\033[32;1mPASS\033[0m\n" : "\033[31;1mFAIL\033[0m\n");
#if 0
    if(!condition)
    {
        printf("%s\n", tm_geterror());
        tm_seterror(NULL);
    }
#endif
}