Skip to contentSkip to conversation

syscalls/fchown04: Make output nicer

PATCH New Cyril Hrubis 1 participant 1 message Jun 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscalls/fchown04: Make output nicer

Print values not variable names in the TST_EXP_PASS()

---
 testcases/kernel/syscalls/fchown/fchown04.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
testcases/kernel/syscalls/fchown/fchown04.c +2 -1
index b2dbbc2cb..a7af3aae7 100644
@@ -62,7 +62,8 @@ static void run(unsigned int i)
 	UID16_CHECK((uid = geteuid()), "fchown");
 	GID16_CHECK((gid = getegid()), "fchown");
 
-	TST_EXP_FAIL(FCHOWN(*tc[i].fd, uid, gid), tc[i].exp_errno);
+	TST_EXP_FAIL(FCHOWN(*tc[i].fd, uid, gid), tc[i].exp_errno,
+	             "fchown(%i, %i, %i)", *tc[i].fd, uid, gid);
 }
 
 static void cleanup(void)
Signature · 1 line
2.31.1