@@ -9,13 +9,13 @@ extern const char *base;
99// In this suite a few dunstrc's are tested to see if the settings code works
1010// This file is called setting.c, since the name settings.c caused issues.
1111
12- char * config_paths [2 ] = {0 };
12+ char * test_paths [2 ] = {0 };
1313
1414TEST test_dunstrc_markup (void ) {
1515 settings_free (& settings );
1616
17- config_paths [0 ] = g_strconcat (base , "/data/dunstrc.markup" , NULL );
18- load_settings (config_paths );
17+ test_paths [0 ] = g_strconcat (base , "/data/dunstrc.markup" , NULL );
18+ load_settings (test_paths );
1919
2020 ASSERT_STR_EQ (settings .font , "Monospace 8" );
2121
@@ -26,15 +26,15 @@ TEST test_dunstrc_markup(void) {
2626 ASSERT_STR_EQ (e_format , got_format );
2727 ASSERT (settings .indicate_hidden );
2828
29- g_clear_pointer (& config_paths [0 ], g_free );
29+ g_clear_pointer (& test_paths [0 ], g_free );
3030 PASS ();
3131}
3232
3333TEST test_dunstrc_nomarkup (void ) {
3434 settings_free (& settings );
3535
36- config_paths [0 ] = g_strconcat (base , "/data/dunstrc.nomarkup" , NULL );
37- load_settings (config_paths );
36+ test_paths [0 ] = g_strconcat (base , "/data/dunstrc.nomarkup" , NULL );
37+ load_settings (test_paths );
3838
3939 ASSERT_STR_EQ (settings .font , "Monospace 8" );
4040
@@ -45,7 +45,7 @@ TEST test_dunstrc_nomarkup(void) {
4545 ASSERT_STR_EQ (e_format , got_format );
4646 ASSERT (settings .indicate_hidden );
4747
48- g_clear_pointer (& config_paths [0 ], g_free );
48+ g_clear_pointer (& test_paths [0 ], g_free );
4949 PASS ();
5050}
5151
@@ -55,11 +55,11 @@ TEST test_dunstrc_defaults(void) {
5555 struct settings s_default ;
5656 struct settings s_dunstrc ;
5757
58- config_paths [0 ] = g_strconcat (base , "/data/dunstrc.default" , NULL );
58+ test_paths [0 ] = g_strconcat (base , "/data/dunstrc.default" , NULL );
5959 set_defaults ();
6060 s_default = settings ;
6161
62- load_settings (config_paths );
62+ load_settings (test_paths );
6363 s_dunstrc = settings ;
6464
6565 ASSERT_EQ (s_default .corner_radius , s_dunstrc .corner_radius );
@@ -116,7 +116,7 @@ TEST test_dunstrc_defaults(void) {
116116 settings_free (& s_old );
117117 settings_free (& s_default );
118118
119- g_clear_pointer (& config_paths [0 ], g_free );
119+ g_clear_pointer (& test_paths [0 ], g_free );
120120 PASS ();
121121}
122122
0 commit comments