summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2016-01-15 16:59:02 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-01-16 11:17:29 -0800
commitb79a7db37d560c9e4b6fdb5314cb8b226a2d6567 (patch)
treebd998d5ae63b62ee8dc4b83cf10ddfce13a6ba26 /lib
parent1ca8e8ebe991ff628d7e03ad4b5a11817a9655d5 (diff)
downloadop-kernel-dev-b79a7db37d560c9e4b6fdb5314cb8b226a2d6567.zip
op-kernel-dev-b79a7db37d560c9e4b6fdb5314cb8b226a2d6567.tar.gz
lib/test_printf.c: account for kvasprintf tests
These should also count as performed tests. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Acked-by: Kees Cook <keescook@chromium.org> Cc: Al Viro <viro@ZenIV.linux.org.uk> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Joe Perches <joe@perches.com> Cc: Maurizio Lombardi <mlombard@redhat.com> Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/test_printf.c1
1 files changed, 1 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud