diff options
| author | Rasmus Villemoes <[email protected]> | 2016-01-16 00:59:02 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-01-16 19:17:29 +0000 |
| commit | b79a7db37d560c9e4b6fdb5314cb8b226a2d6567 (patch) | |
| tree | bd998d5ae63b62ee8dc4b83cf10ddfce13a6ba26 /lib/test_printf.c | |
| parent | lib/test_printf.c: add a few number() tests (diff) | |
| download | kernel-b79a7db37d560c9e4b6fdb5314cb8b226a2d6567.tar.gz kernel-b79a7db37d560c9e4b6fdb5314cb8b226a2d6567.zip | |
lib/test_printf.c: account for kvasprintf tests
These should also count as performed tests.
Signed-off-by: Rasmus Villemoes <[email protected]>
Acked-by: Kees Cook <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Joe Perches <[email protected]>
Cc: Maurizio Lombardi <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_printf.c')
| -rw-r--r-- | lib/test_printf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/test_printf.c b/lib/test_printf.c index b23ce824766f..3e21170d327d 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); |
