diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2020-06-05 08:42:38 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-06-05 08:49:07 +0100 |
| commit | cad7a1bad40c302fef02306708f6ce6279680cb4 (patch) | |
| tree | bd0a157bfa20c9a3c7ccf7f9d3058944732d8145 /tests/ignore/path.c | |
| parent | f7250cc36a77e45c5a46c911548b6bd23b613411 (diff) | |
| download | libgit2-ethomson/clar_tap.tar.gz | |
clar: include the function nameethomson/clar_tap
Diffstat (limited to 'tests/ignore/path.c')
| -rw-r--r-- | tests/ignore/path.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/ignore/path.c b/tests/ignore/path.c index e23ac7712..5d53c9df9 100644 --- a/tests/ignore/path.c +++ b/tests/ignore/path.c @@ -17,19 +17,20 @@ void test_ignore_path__cleanup(void) } static void assert_is_ignored_( - bool expected, const char *filepath, const char *file, int line) + bool expected, const char *filepath, + const char *file, const char *func, int line) { int is_ignored = 0; cl_git_expect( - git_ignore_path_is_ignored(&is_ignored, g_repo, filepath), 0, file, line); + git_ignore_path_is_ignored(&is_ignored, g_repo, filepath), 0, file, func, line); clar__assert_equal( - file, line, "expected != is_ignored", 1, "%d", + file, func, line, "expected != is_ignored", 1, "%d", (int)(expected != 0), (int)(is_ignored != 0)); } #define assert_is_ignored(expected, filepath) \ - assert_is_ignored_(expected, filepath, __FILE__, __LINE__) + assert_is_ignored_(expected, filepath, __FILE__, __func__, __LINE__) void test_ignore_path__honor_temporary_rules(void) { |
