diff options
author | James Booth <boothj5@gmail.com> | 2013-12-15 19:56:48 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-12-15 19:56:48 +0000 |
commit | 7842b0d1fcb6269d2d173a8edefb3af90612d3f2 (patch) | |
tree | e3e28c4647c0f21df77e2f5397b3eb838c2abe6b /tests/ui/mock_ui.c | |
parent | 079ea5304b7bc99b07d2f05b2910ab370023c14d (diff) | |
download | profani-tty-7842b0d1fcb6269d2d173a8edefb3af90612d3f2.tar.gz |
Added mock log module
Diffstat (limited to 'tests/ui/mock_ui.c')
-rw-r--r-- | tests/ui/mock_ui.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/ui/mock_ui.c b/tests/ui/mock_ui.c index a361e90e..33b6f1b8 100644 --- a/tests/ui/mock_ui.c +++ b/tests/ui/mock_ui.c @@ -222,7 +222,16 @@ void cons_show_account(ProfAccount *account) {} void cons_debug(const char * const msg, ...) {} void cons_show_time(void) {} void cons_show_word(const char * const word) {} -void cons_show_error(const char * const cmd, ...) {} + +void cons_show_error(const char * const cmd, ...) +{ + va_list args; + va_start(args, cmd); + vsnprintf(output, sizeof(output), cmd, args); + check_expected(output); + va_end(args); +} + void cons_highlight_show(const char * const cmd) {} void cons_show_contacts(GSList * list) {} void cons_show_roster(GSList * list) {} |