Commit 42142846 authored by Guido Gunther's avatar Guido Gunther
Browse files

Fix number of signals in tests too

Fixes 1fa0ae7f28c35e0738758e414cb12b03ca7c90e3
parent 9be4ebaa
......@@ -12,6 +12,8 @@
#include "../src/lurch_api.h"
#define NUM_OF_SIGNALS 10
char * __wrap_purple_account_get_username(PurpleAccount * acc_p) {
char * username;
......@@ -1120,7 +1122,7 @@ static void test_lurch_api_status_chat_handler_conv_not_found(void ** state) {
static void test_lurch_api_init(void ** state) {
(void) state;
size_t signals = 11;
size_t signals = NUM_OF_SIGNALS;
for (int i = 0; i < signals; i++) {
expect_function_call(__wrap_purple_signal_register);
......@@ -1136,7 +1138,7 @@ static void test_lurch_api_init(void ** state) {
static void test_lurch_api_unload(void ** state) {
(void) state;
size_t signals = 11;
size_t signals = NUM_OF_SIGNALS;
for (int i = 0; i < signals; i++) {
expect_function_call(__wrap_purple_signal_disconnect);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment