diff options
| author | Ben Straub <bstraub@github.com> | 2012-07-27 20:39:43 -0700 |
|---|---|---|
| committer | Ben Straub <bstraub@github.com> | 2012-07-27 20:39:43 -0700 |
| commit | e0681f6d07a9f6041e7450af4715a8df8552ad2e (patch) | |
| tree | 1677e1a5609bdcfc5672e56add85d5957c99e9f5 /tests-clar | |
| parent | 32beb2ecfe5b09acf0640b5f6ccfc1d035cc2142 (diff) | |
| download | libgit2-e0681f6d07a9f6041e7450af4715a8df8552ad2e.tar.gz | |
Checkout: disable file-mode test on win32.
Diffstat (limited to 'tests-clar')
| -rw-r--r-- | tests-clar/checkout/checkout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests-clar/checkout/checkout.c b/tests-clar/checkout/checkout.c index 856aca3fc..8e8e94a7b 100644 --- a/tests-clar/checkout/checkout.c +++ b/tests-clar/checkout/checkout.c @@ -58,6 +58,7 @@ void test_checkout_checkout__crlf(void) "new.txt text eol=lf\n"; cl_git_mkfile("./testrepo/.gitattributes", attributes); cl_git_pass(git_checkout_head(g_repo, NULL, NULL)); + /* TODO: enable these when crlf is ready */ /* test_file_contents("./testrepo/README", "hey there\n"); */ /* test_file_contents("./testrepo/new.txt", "my new file\n"); */ /* test_file_contents("./testrepo/branch_file.txt", "hi\r\nbye!\r\n"); */ @@ -147,6 +148,7 @@ void test_checkout_checkout__dir_modes(void) void test_checkout_checkout__file_modes(void) { +#ifndef GIT_WIN32 git_checkout_opts opts = {0}; struct stat st; @@ -154,6 +156,7 @@ void test_checkout_checkout__file_modes(void) cl_git_pass(git_checkout_head(g_repo, &opts, NULL)); cl_git_pass(p_stat("./testrepo/new.txt", &st)); cl_assert_equal_i(st.st_mode & 0777, 0700); +#endif } void test_checkout_checkout__open_flags(void) |
