Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
lurch
Commits
3070d361
Commit
3070d361
authored
May 28, 2020
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
3070d361
...
...
@@ -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
...
...
test/test_lurch_api.c
View file @
3070d361
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment