summaryrefslogtreecommitdiff
path: root/tests/clar_libgit2.h
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-04-07 11:22:23 +0200
committerVicent Marti <vicent@github.com>2014-04-07 11:22:23 +0200
commit6720eef938d7614cd7a9fd2138a27da3667d62cf (patch)
treee022c239b0d39b860af0622a738ea629db304cac /tests/clar_libgit2.h
parent52056db9c1d6cccf30fc2e22d9b391017bef5eea (diff)
parentc7d9606066d3a9b75a87c4ca5dd3420a66d0b54f (diff)
downloadlibgit2-6720eef938d7614cd7a9fd2138a27da3667d62cf.tar.gz
Merge pull request #2249 from libgit2/rb/starstar-fnmatch
Add support for ** matches in ignores
Diffstat (limited to 'tests/clar_libgit2.h')
-rw-r--r--tests/clar_libgit2.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/clar_libgit2.h b/tests/clar_libgit2.h
index 915111244..3de80bfa0 100644
--- a/tests/clar_libgit2.h
+++ b/tests/clar_libgit2.h
@@ -11,11 +11,13 @@
*
* Use this wrapper around all `git_` library calls that return error codes!
*/
-#define cl_git_pass(expr) do { \
+#define cl_git_pass(expr) cl_git_pass_(expr, __FILE__, __LINE__)
+
+#define cl_git_pass_(expr, file, line) do { \
int _lg2_error; \
giterr_clear(); \
if ((_lg2_error = (expr)) != 0) \
- cl_git_report_failure(_lg2_error, __FILE__, __LINE__, "Function call failed: " #expr); \
+ cl_git_report_failure(_lg2_error, file, line, "Function call failed: " #expr); \
} while (0)
/**