Skip to content

Commit 7831872

Browse files
committed
Fix tests
debug_log() in functions.c needs more work
1 parent 83b8d5a commit 7831872

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

test/functions.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "test.h"
22

33
#include "curses.h"
4+
#include "../src/debug.h"
45

56
int __wrap_key_get() {
67
return -1;
@@ -75,3 +76,9 @@ unsigned int __wrap_sleep(unsigned int seconds) {
7576
return 0;
7677
}
7778

79+
/* for now */
80+
void debug_log (enum debuglevel lvl,
81+
const char *fmt,
82+
...) {
83+
}
84+

test/test_lancode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// OBJECT ../src/lancode.o
1010

11-
void handle_logging(enum log_lvl lvl, ...) {
11+
void handle_logging(enum debuglevel lvl, char *fmt, ...) {
1212
// empty
1313
}
1414

test/test_parse_logcfg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void time_update(void) {
136136
// empty
137137
}
138138

139-
void handle_logging(enum log_lvl lvl, ...) {
139+
void handle_logging(enum debuglevel lvl, char *fmt, ...) {
140140
// empty
141141
}
142142

0 commit comments

Comments
 (0)