Commit f00abcf618a4793d1807a301f9b4f07d37b46fd8

Authored by Georg Hopp
1 parent 06db4f65

some fixes on first logger tests

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