From: Rasmus Villemoes Date: Sat, 16 Jan 2016 00:59:02 +0000 (-0800) Subject: lib/test_printf.c: account for kvasprintf tests X-Git-Tag: v4.14-rc1~3996^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b79a7db37d560c9e4b6fdb5314cb8b226a2d6567;p=platform%2Fkernel%2Flinux-rpi.git lib/test_printf.c: account for kvasprintf tests These should also count as performed tests. Signed-off-by: Rasmus Villemoes Acked-by: Kees Cook Cc: Al Viro Cc: Andy Shevchenko Cc: Ingo Molnar Cc: Joe Perches Cc: Maurizio Lombardi Cc: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/lib/test_printf.c b/lib/test_printf.c index b23ce82..3e21170 100644 --- a/lib/test_printf.c +++ b/lib/test_printf.c @@ -127,6 +127,7 @@ __test(const char *expect, int elen, const char *fmt, ...) p = kvasprintf(GFP_KERNEL, fmt, ap); if (p) { + total_tests++; if (memcmp(p, expect, elen+1)) { pr_warn("kvasprintf(..., \"%s\", ...) returned '%s', expected '%s'\n", fmt, p, expect);