From 5b387f76b18ef3e3909cc9e69390e3195b4efea7 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 28 Mar 2017 12:08:14 +0200 Subject: Fix tests --- test/box-test.c | 3 +++ test/scrollbar-test.c | 3 +++ test/textbox-test.c | 4 ++++ test/widget-test.c | 3 +++ 4 files changed, 13 insertions(+) (limited to 'test') diff --git a/test/box-test.c b/test/box-test.c index 0e943d24..228fe52b 100644 --- a/test/box-test.c +++ b/test/box-test.c @@ -23,6 +23,9 @@ unsigned int test =0; } \ } +void config_parser_set_option ( const char *k, const char *v) +{ +} char * rofi_expand_path ( const char *path ) { diff --git a/test/scrollbar-test.c b/test/scrollbar-test.c index 297bff98..5402719c 100644 --- a/test/scrollbar-test.c +++ b/test/scrollbar-test.c @@ -22,6 +22,9 @@ unsigned int test =0; abort ( ); \ } \ } +void config_parser_set_option ( const char *k, const char *v) +{ +} void rofi_add_error_message ( GString *msg ) {} diff --git a/test/textbox-test.c b/test/textbox-test.c index 27a2e96d..8034b69b 100644 --- a/test/textbox-test.c +++ b/test/textbox-test.c @@ -22,6 +22,10 @@ unsigned int normal_window_mode = 0; #include "view.h" +void config_parser_set_option ( const char *k, const char *v) +{ +} + void rofi_add_error_message ( GString *msg) { } diff --git a/test/widget-test.c b/test/widget-test.c index 5b06012b..5118ffbd 100644 --- a/test/widget-test.c +++ b/test/widget-test.c @@ -12,6 +12,9 @@ unsigned int test =0; assert ( a ); \ printf ( "Test %3i passed (%s)\n", ++test, # a ); \ } +void config_parser_set_option ( const char *k, const char *v) +{ +} void rofi_add_error_message ( GString *msg ) { } -- cgit v1.2.3 From 5259eb11bc7327074511bc83595542fe616ae1b1 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 28 Mar 2017 17:33:43 +0200 Subject: Merge the configuration loading into something more simple (3) --- test/box-test.c | 2 +- test/scrollbar-test.c | 2 +- test/textbox-test.c | 2 +- test/widget-test.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/box-test.c b/test/box-test.c index 228fe52b..74794820 100644 --- a/test/box-test.c +++ b/test/box-test.c @@ -23,7 +23,7 @@ unsigned int test =0; } \ } -void config_parser_set_option ( const char *k, const char *v) +void config_parse_set_property ( const void *p ) { } char * rofi_expand_path ( const char *path ) diff --git a/test/scrollbar-test.c b/test/scrollbar-test.c index 5402719c..9de2f744 100644 --- a/test/scrollbar-test.c +++ b/test/scrollbar-test.c @@ -22,7 +22,7 @@ unsigned int test =0; abort ( ); \ } \ } -void config_parser_set_option ( const char *k, const char *v) +void config_parse_set_property ( const void *p ) { } void rofi_add_error_message ( GString *msg ) diff --git a/test/textbox-test.c b/test/textbox-test.c index 8034b69b..664b4b61 100644 --- a/test/textbox-test.c +++ b/test/textbox-test.c @@ -22,7 +22,7 @@ unsigned int normal_window_mode = 0; #include "view.h" -void config_parser_set_option ( const char *k, const char *v) +void config_parse_set_property ( void *p ) { } diff --git a/test/widget-test.c b/test/widget-test.c index 5118ffbd..d9eab98a 100644 --- a/test/widget-test.c +++ b/test/widget-test.c @@ -12,7 +12,7 @@ unsigned int test =0; assert ( a ); \ printf ( "Test %3i passed (%s)\n", ++test, # a ); \ } -void config_parser_set_option ( const char *k, const char *v) +void config_parse_set_property ( const void *p ) { } void rofi_add_error_message ( GString *msg ) -- cgit v1.2.3