Skip to content

Commit

Permalink
Fix tests exit status
Browse files Browse the repository at this point in the history
  • Loading branch information
flapenguin committed Oct 15, 2015
1 parent 18c452a commit d967467
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 2 additions & 0 deletions tests/containerof_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit d967467

Please sign in to comment.