diff options
Diffstat (limited to 'tests/config/include.c')
-rw-r--r-- | tests/config/include.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/config/include.c b/tests/config/include.c index 58bc690ff..167814e59 100644 --- a/tests/config/include.c +++ b/tests/config/include.c @@ -51,29 +51,6 @@ void test_config_include__homedir(void) cl_sandbox_set_search_path_defaults(); } -void test_config_include__refresh(void) -{ - git_config *cfg; - const char *str; - - cl_fixture_sandbox("config"); - - cl_git_pass(git_config_open_ondisk(&cfg, "config/config-include")); - - cl_git_pass(git_config_get_string(&str, cfg, "foo.bar.baz")); - cl_assert_equal_s(str, "huzzah"); - - /* Change the included file and see if we refresh */ - cl_git_mkfile("config/config-included", "[foo \"bar\"]\nbaz = hurrah"); - cl_git_pass(git_config_refresh(cfg)); - - cl_git_pass(git_config_get_string(&str, cfg, "foo.bar.baz")); - cl_assert_equal_s(str, "hurrah"); - - git_config_free(cfg); - cl_fixture_cleanup("config"); -} - /* We need to pretend that the variables were defined where the file was included */ void test_config_include__ordering(void) { |