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@edwardthomson.com>2015-08-31 01:57:06 +0300
committerEdward Thomson <ethomson@edwardthomson.com>2015-08-31 01:57:06 +0300
commit71ef639e5f48be8e8b459cc705be7f58016256f8 (patch)
tree4e9e4c567d2e2fd0b7a7af451586cf05faddeda5 /tests/status
parent7b73739fddce91731bb53320ae6e43d7d7276169 (diff)
status test: brackets are now literal
Diffstat (limited to 'tests/status')
-rw-r--r--tests/status/worktree_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/status/worktree_init.c b/tests/status/worktree_init.c
index cc7e126f1..9d5cfa5a3 100644
--- a/tests/status/worktree_init.c
+++ b/tests/status/worktree_init.c
@@ -191,10 +191,10 @@ void test_status_worktree_init__bracket_in_filename(void)
cl_git_pass(git_status_file(&status_flags, repo, FILE_WITHOUT_BRACKET));
cl_assert(status_flags == GIT_STATUS_WT_NEW);
- cl_git_pass(git_status_file(&status_flags, repo, "LICENSE\\[1\\].md"));
- cl_assert(status_flags == GIT_STATUS_INDEX_NEW);
+ cl_git_fail_with(git_status_file(&status_flags, repo, "LICENSE\\[1\\].md"), GIT_ENOTFOUND);
cl_git_pass(git_status_file(&status_flags, repo, FILE_WITH_BRACKET));
+ cl_assert(status_flags == GIT_STATUS_INDEX_NEW);
git_index_free(index);
git_repository_free(repo);