1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/testing/rofi-blocks/fix-check_page_data.patch
2022-02-01 19:25:39 +01:00

31 lines
1.5 KiB
Diff

Patch-Source: https://github.com/OmarCastro/rofi-blocks/pull/28
--
From f1b36b2198e9d507903a9d626131f7070a6dfc79 Mon Sep 17 00:00:00 2001
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Tue, 1 Feb 2022 19:16:24 +0100
Subject: [PATCH] test: Fix outdated page_data_add_line call in check_page_data
check_page_data.c:18:5: error: too few arguments to function 'page_data_add_line'
18 | page_data_add_line(page_data, "aaa", true, true, true);
| ^~~~~~~~~~~~~~~~~~
In file included from check_page_data.c:4:
../src/page_data.h:58:6: note: declared here
58 | void page_data_add_line(PageData * pageData, const gchar * label, const gchar * icon, const gchar * data, gboolean urgent, gboolean highlight, gboolean markup);
| ^~~~~~~~~~~~~~~~~~
---
tests/check_page_data.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/check_page_data.c b/tests/check_page_data.c
index 23c559a..31e6089 100644
--- a/tests/check_page_data.c
+++ b/tests/check_page_data.c
@@ -15,7 +15,7 @@ int main(void)
test_uint_equals(.result = page_data_get_number_of_lines(page_data), .expected = 0);
- page_data_add_line(page_data, "aaa", true, true, true);
+ page_data_add_line(page_data, "aaa", "any-icon", "any-data", true, true, true);
test_string_equals(.result = page_data_get_line_by_index_or_else(page_data, 0, NULL)->text, .expected= "aaa");
test_true(page_data_get_line_by_index_or_else(page_data, -1, NULL) == NULL);
test_true(page_data_get_line_by_index_or_else(NULL, 0, NULL) == NULL);