diff options
author | J Wyman <jeremy.wyman@microsoft.com> | 2015-03-31 00:07:44 +0300 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2015-04-28 21:24:58 +0300 |
commit | 4c09e19a3764a1e5f3340dabf8104dfed32e7673 (patch) | |
tree | 8df38e74e802445528d626d37276e8b119a7eb46 /tests/attr | |
parent | d969d41547080d5e924d49f44ba5de1ade5b343c (diff) |
Improvements to ignore performance on Windows.
Minimizing the number directory and file opens, minimizes the amount of IO thus reducing the overall cost of performing ignore operations.
Diffstat (limited to 'tests/attr')
-rw-r--r-- | tests/attr/lookup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/attr/lookup.c b/tests/attr/lookup.c index 030ea075d..71e87cbae 100644 --- a/tests/attr/lookup.c +++ b/tests/attr/lookup.c @@ -13,7 +13,7 @@ void test_attr_lookup__simple(void) cl_assert_equal_s(cl_fixture("attr/attr0"), file->entry->path); cl_assert(file->rules.length == 1); - cl_git_pass(git_attr_path__init(&path, "test", NULL)); + cl_git_pass(git_attr_path__init(&path, "test", NULL, GIT_DIR_FLAG_UNKNOWN)); cl_assert_equal_s("test", path.path); cl_assert_equal_s("test", path.basename); cl_assert(!path.is_dir); @@ -36,7 +36,7 @@ static void run_test_cases(git_attr_file *file, struct attr_expected *cases, int int error; for (c = cases; c->path != NULL; c++) { - cl_git_pass(git_attr_path__init(&path, c->path, NULL)); + cl_git_pass(git_attr_path__init(&path, c->path, NULL, GIT_DIR_FLAG_UNKNOWN)); if (force_dir) path.is_dir = 1; @@ -133,7 +133,7 @@ void test_attr_lookup__match_variants(void) cl_assert_equal_s(cl_fixture("attr/attr1"), file->entry->path); cl_assert(file->rules.length == 10); - cl_git_pass(git_attr_path__init(&path, "/testing/for/pat0", NULL)); + cl_git_pass(git_attr_path__init(&path, "/testing/for/pat0", NULL, GIT_DIR_FLAG_UNKNOWN)); cl_assert_equal_s("pat0", path.basename); run_test_cases(file, cases, 0); |