lkml.org 
[lkml]   [2015]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 12/14] lib/test_printf.c: account for kvasprintf tests
    Date
    These should also count as performed tests.

    Acked-by: Kees Cook <keescook@chromium.org>
    Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
    ---
    lib/test_printf.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/lib/test_printf.c b/lib/test_printf.c
    index 5f742b99cfdc..fc9169d360ba 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);
    --
    2.6.1


    \
     
     \ /
      Last update: 2015-11-23 23:01    [W:3.489 / U:1.528 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site