Commit 3070d361 authored by Guido Gunther's avatar Guido Gunther
Browse files

Merge branch 'fix-tests' into 'librem5'

Fix number of signals in tests too

Closes #5

See merge request !6
parents 9be4ebaa 4175f0a3
Pipeline #55757 passed with stages
in 2 minutes and 35 seconds
......@@ -18,7 +18,7 @@ build-debian-gcc:
stage: build
script:
- git submodule update --init --recursive
- make
- make -j4 test
build-debian-package:
image: debian:buster
......
......@@ -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