diff options
author | nulltoken <emeric.fermas@gmail.com> | 2011-09-17 16:28:18 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2011-09-17 16:28:18 +0200 |
commit | afdf8dcb97a744de2daa0bc8f4dad86d8633835f (patch) | |
tree | bb70889783b1177204357f8ad1b6249725cc9190 /tests/t18-status.c | |
parent | 8320001db7b2981ba8a4c09a9c7f3da574953602 (diff) | |
download | libgit2-afdf8dcb97a744de2daa0bc8f4dad86d8633835f.tar.gz |
Add some forgotten asserts in the status tests
Diffstat (limited to 'tests/t18-status.c')
-rw-r--r-- | tests/t18-status.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/t18-status.c b/tests/t18-status.c index 75cdca1b7..1659fcd1a 100644 --- a/tests/t18-status.c +++ b/tests/t18-status.c @@ -144,7 +144,7 @@ BEGIN_TEST(statuscb0, "test retrieving status for worktree of repository") counts.expected_paths = entry_paths0; counts.expected_statuses = entry_statuses0; - git_status_foreach(repo, status_cb, &counts); + must_pass(git_status_foreach(repo, status_cb, &counts)); must_be_true(counts.entry_count == counts.expected_entry_count); must_be_true(counts.wrong_status_flags_count == 0); must_be_true(counts.wrong_sorted_path == 0); @@ -174,7 +174,7 @@ BEGIN_TEST(statuscb1, "test retrieving status for a worktree of an empty reposit must_pass(remove_placeholders(TEST_STD_REPO_FOLDER, "dummy-marker.txt")); must_pass(git_repository_open(&repo, TEST_STD_REPO_FOLDER)); - git_status_foreach(repo, status_cb1, &count); + must_pass(git_status_foreach(repo, status_cb1, &count)); must_be_true(count == 0); git_repository_free(repo); @@ -242,7 +242,7 @@ BEGIN_TEST(statuscb2, "test retrieving status for a purged worktree of an valid counts.expected_paths = entry_paths2; counts.expected_statuses = entry_statuses2; - git_status_foreach(repo, status_cb, &counts); + must_pass(git_status_foreach(repo, status_cb, &counts)); must_be_true(counts.entry_count == counts.expected_entry_count); must_be_true(counts.wrong_status_flags_count == 0); must_be_true(counts.wrong_sorted_path == 0); @@ -325,7 +325,7 @@ BEGIN_TEST(statuscb3, "test retrieving status for a worktree where a file and a counts.expected_paths = entry_paths3; counts.expected_statuses = entry_statuses3; - git_status_foreach(repo, status_cb, &counts); + must_pass(git_status_foreach(repo, status_cb, &counts)); must_be_true(counts.entry_count == counts.expected_entry_count); must_be_true(counts.wrong_status_flags_count == 0); must_be_true(counts.wrong_sorted_path == 0); |