diff --git a/Makefile b/Makefile index e8bb541..402be15 100644 --- a/Makefile +++ b/Makefile @@ -8,5 +8,5 @@ tests: bash ./tests/run_preprocessor_tests.sh || (exit 1) mkdir -p tests/build - gcc tests/containerof_test.c -Iinclude -o tests/build/containerof_test - tests/build/containerof_test || (exit 1) + gcc tests/containerof_test.c -g -Iinclude -o ./tests/build/containerof_test + ./tests/build/containerof_test || (exit 1) diff --git a/tests/containerof_test.c b/tests/containerof_test.c index 400ea6b..c10b8ee 100644 --- a/tests/containerof_test.c +++ b/tests/containerof_test.c @@ -13,4 +13,6 @@ int main() { assert(PP_CONTAINER_OF(pbar, struct foo_t, bar) == &foo); assert(PP_CONTAINER_OF(pbaz, foo_t, baz) == &foo); + + return 0; } \ No newline at end of file