Showing
2 changed files
with
4 additions
and
4 deletions
@@ -8,7 +8,7 @@ cclassTest_SOURCES = runtest.c cclassTest.c mock/class.c ../src/cclass.c | @@ -8,7 +8,7 @@ cclassTest_SOURCES = runtest.c cclassTest.c mock/class.c ../src/cclass.c | ||
8 | cclassTest_LDADD = $(LIBOBJS) | 8 | cclassTest_LDADD = $(LIBOBJS) |
9 | cclassTest_CFLAGS = -Wall -I ../include -I .. -I . | 9 | cclassTest_CFLAGS = -Wall -I ../include -I .. -I . |
10 | 10 | ||
11 | -loggerTest_SOURCES = runtest.c loggerTest.c | 11 | +loggerTest_SOURCES = runtest.c loggerTest.c ../src/cclass.c ../src/logger.c |
12 | loggerTest_LDADD = $(LIBOBJS) | 12 | loggerTest_LDADD = $(LIBOBJS) |
13 | loggerTest_CFLAGS = -Wall -I ../include -I .. -I . | 13 | loggerTest_CFLAGS = -Wall -I ../include -I .. -I . |
14 | 14 |
@@ -39,11 +39,11 @@ static | @@ -39,11 +39,11 @@ static | ||
39 | int | 39 | int |
40 | __setUp() | 40 | __setUp() |
41 | { | 41 | { |
42 | - logger = new(LOGGER); | 42 | + logger = new(LOGGER, NULL); |
43 | 43 | ||
44 | ASSERT_INSTANCE_OF(LOGGER, logger); | 44 | ASSERT_INSTANCE_OF(LOGGER, logger); |
45 | 45 | ||
46 | - logger_add(LOGGER, logfnct_mock); | 46 | + logger_add(logger, logfnct_mock); |
47 | 47 | ||
48 | return TEST_OK; | 48 | return TEST_OK; |
49 | } | 49 | } |
@@ -66,7 +66,7 @@ static | @@ -66,7 +66,7 @@ static | ||
66 | int | 66 | int |
67 | testDummy() | 67 | testDummy() |
68 | { | 68 | { |
69 | - logger_log(LOGGER_DEBUG, "moo foo bar"); | 69 | + logger_log(logger, LOGGER_DEBUG, "moo foo bar"); |
70 | 70 | ||
71 | return TEST_OK; | 71 | return TEST_OK; |
72 | } | 72 | } |
Please
register
or
login
to post a comment