summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-08-13 17:23:07 -0400
committerEdward Thomson <ethomson@microsoft.com>2014-08-13 17:23:07 -0400
commitc8402334d2f4943653f1377455d478a4b471b254 (patch)
treeb90e4cf10eb392c9298e2cea91d023a6671d77dc
parente62f96dea5a46098cbca5a287f29ca811003bd68 (diff)
downloadlibgit2-c8402334d2f4943653f1377455d478a4b471b254.tar.gz
Don't include the unreadable tests on win32
-rw-r--r--tests/status/worktree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/status/worktree.c b/tests/status/worktree.c
index 2e86c03b0..8897bf9b5 100644
--- a/tests/status/worktree.c
+++ b/tests/status/worktree.c
@@ -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)