diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2022-02-22 07:17:12 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-22 07:17:12 -0500 |
| commit | eca9e1cfec2be5a55401290de9eb944bcb54c867 (patch) | |
| tree | e7a071c9670069374c38b55686739982b98488b6 /tests | |
| parent | 1551b1f02b534390f26c57f6b06b9d8582982db8 (diff) | |
| parent | f45121edd174bd2f87881f3b6fdad4232741a9ad (diff) | |
| download | libgit2-eca9e1cfec2be5a55401290de9eb944bcb54c867.tar.gz | |
Merge pull request #6228 from libgit2/ethomson/win32_systemdirs
win32: `find_system_dirs` does not return `GIT_ENOTFOUND`
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/win32/systemdir.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/win32/systemdir.c b/tests/win32/systemdir.c index 46fa06a50..52c1784a1 100644 --- a/tests/win32/systemdir.c +++ b/tests/win32/systemdir.c @@ -326,3 +326,13 @@ void test_win32_systemdir__prefers_path_to_registry(void) git_config_free(cfg); #endif } + +void test_win32_systemdir__no_git_installed(void) +{ +#ifdef GIT_WIN32 + git_str out = GIT_STR_INIT; + + cl_git_pass(git_win32__find_system_dirs(&out, "etc")); + cl_assert_equal_s(out.ptr, ""); +#endif +} |
