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
path: root/tests
diff options
context:
space:
mode:
authorJason Penny <jasonpenny4@gmail.com>2011-06-25 04:36:53 +0400
committerVicent Marti <tanoku@gmail.com>2011-07-09 15:49:50 +0400
commit34dfea2774c10257eb13aae515d79ea2c224b911 (patch)
tree1c6641002488a0a0b05df1b427a36923f25f978a /tests
parent6b251490a811e6539488f83f506b2b0839de7ee1 (diff)
status: handle subdirs for git_status_file
Diffstat (limited to 'tests')
-rw-r--r--tests/t18-status.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/t18-status.c b/tests/t18-status.c
index f5899d40b..3c8a296e8 100644
--- a/tests/t18-status.c
+++ b/tests/t18-status.c
@@ -68,6 +68,11 @@ static const char *entry_paths[] = {
"staged_new_file",
"staged_new_file_deleted_file",
"staged_new_file_modified_file",
+
+ "subdir/current_file",
+ "subdir/deleted_file",
+ "subdir/modified_file",
+ "subdir/new_file",
};
static const unsigned int entry_statuses[] = {
GIT_STATUS_CURRENT,
@@ -82,8 +87,13 @@ static const unsigned int entry_statuses[] = {
GIT_STATUS_INDEX_NEW,
GIT_STATUS_INDEX_NEW | GIT_STATUS_WT_DELETED,
GIT_STATUS_INDEX_NEW | GIT_STATUS_WT_MODIFIED,
+
+ GIT_STATUS_CURRENT,
+ GIT_STATUS_WT_DELETED,
+ GIT_STATUS_WT_MODIFIED,
+ GIT_STATUS_WT_NEW,
};
-#define ENTRY_COUNT 12
+#define ENTRY_COUNT 16
static unsigned int get_expected_entry_status(const char *path)
{