]> git.baikalelectronics.ru Git - kernel.git/commit
lib/test-string_helpers.c: add string_get_size() tests
authorVitaly Kuznetsov <vkuznets@redhat.com>
Sat, 7 Nov 2015 00:31:14 +0000 (16:31 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 7 Nov 2015 01:50:42 +0000 (17:50 -0800)
commitd920a040e7d6b0be2daa7a2e1cdc352d768146d6
tree7a6968b0dde24e48813d6c544738a32008539c63
parent33dedd3075e335b0d403c304edd011b13f201328
lib/test-string_helpers.c: add string_get_size() tests

Add a couple of simple tests for string_get_size().  The last one will
hang the kernel without the 'lib/string_helpers.c: fix infinite loop in
string_get_size()' fix.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: James Bottomley <JBottomley@Odin.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/test-string_helpers.c