summaryrefslogtreecommitdiff
path: root/tests/attr
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2017-02-17 12:13:35 +0000
committerEdward Thomson <ethomson@github.com>2017-02-17 12:58:57 +0000
commita1dcc83030f9073fe29054ecaf7647dca1fec2ec (patch)
treeee97e42b21bff4378555f489e19f7155e3604913 /tests/attr
parentcc172642702e59637ee237317c0d6fab903d176f (diff)
downloadlibgit2-a1dcc83030f9073fe29054ecaf7647dca1fec2ec.tar.gz
tests: provide better pass/failure error messages
Provide more detailed messages when conditions pass or fail unexpectedly. In particular, this provides the error messages when a test fails with a different error code than was expected.
Diffstat (limited to 'tests/attr')
-rw-r--r--tests/attr/ignore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/attr/ignore.c b/tests/attr/ignore.c
index f1fe1c71f..a8845e463 100644
--- a/tests/attr/ignore.c
+++ b/tests/attr/ignore.c
@@ -21,8 +21,8 @@ static void assert_is_ignored_(
{
int is_ignored = 0;
- cl_git_pass_(
- git_ignore_path_is_ignored(&is_ignored, g_repo, filepath), file, line);
+ cl_git_exec(
+ git_ignore_path_is_ignored(&is_ignored, g_repo, filepath), 0, file, line);
clar__assert_equal(
file, line, "expected != is_ignored", 1, "%d",