Skip to content

Commit

Permalink
Fixed wrong macro usage in conditional test
Browse files Browse the repository at this point in the history
  • Loading branch information
Snaipe committed Jan 19, 2015
1 parent ae7f183 commit a52eb62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion check/test/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ START_TEST (test_zero_size) {
ck_assert_msg(ptr == NULL, "Expected NULL pointer to be returned.");
} END_TEST

#ifndef FIXED_SMALLOC_ALLOCATOR
#ifndef SMALLOC_FIXED_ALLOCATOR
START_TEST (test_alloc_failure) {
smalloc_allocator = (s_allocator) {
lambda(void *, (size_t s) { return NULL; }),
Expand All @@ -27,7 +27,9 @@ START_TEST (test_alloc_failure) {

TFun misc_tests[] = {
test_more_args,
#ifndef SMALLOC_FIXED_ALLOCATOR
test_alloc_failure,
#endif
test_zero_size,
NULL
};

0 comments on commit a52eb62

Please sign in to comment.