X-Git-Url: https://git.kengrimes.com/?p=henge%2Fwebcc.git;a=blobdiff_plain;f=src%2Fbin%2Ftools%2Ftestir.c;fp=src%2Fbin%2Ftools%2Fir.c;h=69c9c2897fef6a76ecb345a73a1e67358c794c62;hp=243fa3a2c2297c48ce3578e682c46563c201192b;hb=1f3b22e0c25b3b753143a7efa1b0d494b2a75200;hpb=0c212767a6ff66e2c9a27ee344fe74306e75bb83 diff --git a/src/bin/tools/ir.c b/src/bin/tools/testir.c similarity index 79% rename from src/bin/tools/ir.c rename to src/bin/tools/testir.c index 243fa3a..69c9c28 100644 --- a/src/bin/tools/ir.c +++ b/src/bin/tools/testir.c @@ -18,15 +18,20 @@ #define CYAN "\x1b[36m" #define CLRX "\x1b[0m" //clear current color +extern //ir.c +void ir_quit(void); +extern +int ir_init(void); +extern + + int main(void); int test_init(void); -int test_malloc(void); int main () { test_init(); - test_malloc(); return 0; } @@ -35,14 +40,15 @@ test_init () { /* Test Init */ printf("YELLOW Initializing\n"); - ir_init(); + if (ir_init()) + { printf("RED FAILED CLRX"); + perror("ir init"); + return 1; + } printf("Quitting CLRX\n"); ir_quit(); + printf("GREEN PASS"); return 0; } -int -test_malloc -() -{ return 0; -} +