Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-03-27 22:39:28 +0300
committerEdward Thomson <ethomson@edwardthomson.com>2015-05-04 15:18:27 +0300
commit3520c97057a2e4236779d24ec6fece0d11514319 (patch)
tree1899d8d0d190dc95d147f4eb253dba6c1336189a /tests/checkout
parent6dfd8506b780a5fd973e589c924e227993e0e79c (diff)
Revert "Always checkout with case sensitive iterator"
This reverts commit 40d791545abfb3cb71553a27dc64129e1a9bec28.
Diffstat (limited to 'tests/checkout')
-rw-r--r--tests/checkout/tree.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/checkout/tree.c b/tests/checkout/tree.c
index 7b0eae411..3bc9c9364 100644
--- a/tests/checkout/tree.c
+++ b/tests/checkout/tree.c
@@ -646,7 +646,14 @@ void test_checkout_tree__can_cancel_checkout_from_notify(void)
cl_git_fail_with(git_checkout_tree(g_repo, obj, &opts), -5555);
cl_assert(!git_path_exists("testrepo/new.txt"));
- cl_assert_equal_i(4, ca.count);
+
+ /* on case-insensitive FS = a/b.txt, branch_file.txt, new.txt */
+ /* on case-sensitive FS = README, then above */
+
+ if (git_path_exists("testrepo/.git/CoNfIg")) /* case insensitive */
+ cl_assert_equal_i(3, ca.count);
+ else
+ cl_assert_equal_i(4, ca.count);
/* and again with a different stopping point and return code */
ca.filename = "README";
@@ -656,7 +663,11 @@ void test_checkout_tree__can_cancel_checkout_from_notify(void)
cl_git_fail_with(git_checkout_tree(g_repo, obj, &opts), 123);
cl_assert(!git_path_exists("testrepo/new.txt"));
- cl_assert_equal_i(1, ca.count);
+
+ if (git_path_exists("testrepo/.git/CoNfIg")) /* case insensitive */
+ cl_assert_equal_i(4, ca.count);
+ else
+ cl_assert_equal_i(1, ca.count);
git_object_free(obj);
}