summaryrefslogtreecommitdiff
path: root/tests/core/mkdir.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-06-05 14:11:34 +0100
committerGitHub <noreply@github.com>2020-06-05 14:11:34 +0100
commitc708e5e51d8f6aae517a861c380861c3caf18eb6 (patch)
tree484b5461478ec7b723d3e15ab133092d61910dcd /tests/core/mkdir.c
parentb4290518b112ffc587ecd03a3ac588ded0ddae0e (diff)
parentcad7a1bad40c302fef02306708f6ce6279680cb4 (diff)
downloadlibgit2-c708e5e51d8f6aae517a861c380861c3caf18eb6.tar.gz
Merge pull request #5541 from libgit2/ethomson/clar_tap
clar: add tap output option
Diffstat (limited to 'tests/core/mkdir.c')
-rw-r--r--tests/core/mkdir.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/core/mkdir.c b/tests/core/mkdir.c
index ce11953f0..3f04c2ad3 100644
--- a/tests/core/mkdir.c
+++ b/tests/core/mkdir.c
@@ -150,10 +150,11 @@ static void cleanup_chmod_root(void *ref)
git_futils_rmdir_r("r", NULL, GIT_RMDIR_EMPTY_HIERARCHY);
}
-#define check_mode(X,A) check_mode_at_line((X), (A), __FILE__, __LINE__)
+#define check_mode(X,A) check_mode_at_line((X), (A), __FILE__, __func__, __LINE__)
static void check_mode_at_line(
- mode_t expected, mode_t actual, const char *file, int line)
+ mode_t expected, mode_t actual,
+ const char *file, const char *func, int line)
{
/* FAT filesystems don't support exec bit, nor group/world bits */
if (!cl_is_chmod_supported()) {
@@ -162,7 +163,7 @@ static void check_mode_at_line(
}
clar__assert_equal(
- file, line, "expected_mode != actual_mode", 1,
+ file, func, line, "expected_mode != actual_mode", 1,
"%07o", (int)expected, (int)(actual & 0777));
}