diff --git a/Makefile.am b/Makefile.am index fc4f8b2..00a090d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,4 +40,5 @@ libcriterion_la_SOURCES = \ src/process.c \ src/process.h \ src/stats.c \ - src/stats.h + src/stats.h \ + src/main.c diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..bcaac01 --- /dev/null +++ b/src/main.c @@ -0,0 +1,5 @@ +#include + +int main(void) { + return criterion_run_all_tests(); +} diff --git a/src/runner.c b/src/runner.c index ddc30fe..e00d4fe 100644 --- a/src/runner.c +++ b/src/runner.c @@ -164,7 +164,3 @@ int criterion_run_all_tests(void) { return strcmp("1", getenv("CRITERION_ALWAYS_SUCCEED") ?: "0") && res; } - -int main(void) { - return criterion_run_all_tests(); -}