Testing do_remove

Mocking the send_to_char function to check messages to the user. Still doesn't work for act() though.
Requires libmocka-dev and   libunwind-setjmp0-dev
This commit is contained in:
welcor
2024-05-19 01:45:42 +02:00
parent 217eac8cb3
commit 7d3acb0e3d
4 changed files with 83 additions and 5 deletions

View File

@@ -8,7 +8,8 @@ ASAN:=n
UBSAN:=n
EXTENSION:=
TEST_ENV:=
CFLAGS:=-Wall -Wno-char-subscripts -Wno-unused-but-set-variable
CFLAGS:=-Wall -Wno-char-subscripts -Wno-unused-but-set-variable
CFLAGS+=-Wl,--wrap=send_to_char,--wrap=vwrite_to_output
AGGRESSIVE_WARNINGS=n
LIBS:=-lcrypt