c-libp2p/test/testit.c

20 lines
351 B
C
Raw Normal View History

2016-11-03 14:18:32 +00:00
2016-11-03 16:15:18 +00:00
#include <stdio.h>
2016-11-03 14:18:32 +00:00
int testit(const char* name, int (*func)(void)) {
printf("Testing %s...\n", name);
int retVal = func();
if (retVal)
printf("%s success!\n", name);
else
printf("** Uh oh! %s failed.**\n", name);
return retVal;
}
int main(int argc, char** argv) {
2016-11-03 16:15:18 +00:00
//testit("test_repo_config_init", test_repo_config_init);
2016-11-03 14:18:32 +00:00
return 1;
}