]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/test-string_helpers.c: add string_get_size() tests
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 21 Oct 2015 22:03:52 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:52 +0000 (09:03 +1100)
commit29f3d1402a27e996fba438c006c246a2c8b7f8f7
treefc8561a9acfb1a763c7cffd348fc7643c21a7c69
parent0ef4d6e4ae6991918013373409a56bd78f16ae78
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>
lib/test-string_helpers.c