mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 22:39:38 +00:00
Merge pull request #2517 from ethomson/no_win_unreadable
Don't include the unreadable tests on win32
This commit is contained in:
commit
49d5ec7137
@ -938,6 +938,7 @@ void test_status_worktree__update_stat_cache_0(void)
|
||||
|
||||
void test_status_worktree__unreadable(void)
|
||||
{
|
||||
#ifndef GIT_WIN32
|
||||
const char *expected_paths[] = { "no_permission/foo" };
|
||||
const unsigned int expected_statuses[] = {GIT_STATUS_WT_UNREADABLE};
|
||||
|
||||
@ -966,10 +967,12 @@ void test_status_worktree__unreadable(void)
|
||||
cl_assert_equal_i(counts.expected_entry_count, counts.entry_count);
|
||||
cl_assert_equal_i(0, counts.wrong_status_flags_count);
|
||||
cl_assert_equal_i(0, counts.wrong_sorted_path);
|
||||
#endif
|
||||
}
|
||||
|
||||
void test_status_worktree__unreadable_not_included(void)
|
||||
{
|
||||
#ifndef GIT_WIN32
|
||||
const char *expected_paths[] = { "no_permission/" };
|
||||
const unsigned int expected_statuses[] = {GIT_STATUS_WT_NEW};
|
||||
|
||||
@ -998,6 +1001,7 @@ void test_status_worktree__unreadable_not_included(void)
|
||||
cl_assert_equal_i(counts.expected_entry_count, counts.entry_count);
|
||||
cl_assert_equal_i(0, counts.wrong_status_flags_count);
|
||||
cl_assert_equal_i(0, counts.wrong_sorted_path);
|
||||
#endif
|
||||
}
|
||||
|
||||
void test_status_worktree__unreadable_as_untracked(void)
|
||||
|
Loading…
Reference in New Issue
Block a user