diff options
author | Vicent Marti <vicent@github.com> | 2014-08-13 23:38:53 +0200 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-08-13 23:38:53 +0200 |
commit | 49d5ec713715ebf8739b38096fe1ff4011a9e15c (patch) | |
tree | b90e4cf10eb392c9298e2cea91d023a6671d77dc | |
parent | 0707feee37df7e8cdb007bcd57fb48c5b2e8a814 (diff) | |
parent | c8402334d2f4943653f1377455d478a4b471b254 (diff) | |
download | libgit2-49d5ec713715ebf8739b38096fe1ff4011a9e15c.tar.gz |
Merge pull request #2517 from ethomson/no_win_unreadable
Don't include the unreadable tests on win32
-rw-r--r-- | tests/status/worktree.c | 4 |
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) |