Re: [PATCH v5 2/2] lib/test-string_helpers.c: add string_get_size() tests

2015-10-23 Thread Vitaly Kuznetsov
Rasmus Villemoes writes: > On Thu, Sep 17 2015, Vitaly Kuznetsov wrote: > >> + >> +static __init void test_string_get_size(void) >> +{ >> +test_string_get_size_one(16384, 512, STRING_UNITS_2, "8.00 MiB"); >> +test_string_get_size_one(8192, 4096, STRING_UNITS_10, "32.7 MB"); > > This is a

Re: [PATCH v5 2/2] lib/test-string_helpers.c: add string_get_size() tests

2015-10-21 Thread Rasmus Villemoes
On Thu, Sep 17 2015, Vitaly Kuznetsov wrote: > + > +static __init void test_string_get_size(void) > +{ > + test_string_get_size_one(16384, 512, STRING_UNITS_2, "8.00 MiB"); > + test_string_get_size_one(8192, 4096, STRING_UNITS_10, "32.7 MB"); This is a little late, but I just noticed tha

[PATCH v5 2/2] lib/test-string_helpers.c: add string_get_size() tests

2015-09-17 Thread Vitaly Kuznetsov
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 --- lib/test-string_helpers.c | 36 1 file changed, 36 insert