summaryrefslogtreecommitdiffstats
path: root/lib/oid_registry.c
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2016-02-02 16:57:18 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-11 11:21:26 +0200
commitf6ff7398220d7fda0f4d02b9c9755406d8169bc2 (patch)
tree25b5ac92f261cf3724c22c1a1992e86c3bfc8745 /lib/oid_registry.c
parentdfa11d586248a21ce2c7fae02c02964c3a4a8379 (diff)
downloadlinux-stable-f6ff7398220d7fda0f4d02b9c9755406d8169bc2.tar.gz
linux-stable-f6ff7398220d7fda0f4d02b9c9755406d8169bc2.tar.bz2
linux-stable-f6ff7398220d7fda0f4d02b9c9755406d8169bc2.zip
lib/test-string_helpers.c: fix and improve string_get_size() tests
commit 72676bb53f33fd0ef3a1484fc1ecfd306dc6ff40 upstream. Recently added commit 564b026fbd0d ("string_helpers: fix precision loss for some inputs") fixed precision issues for string_get_size() and broke tests. Fix and improve them: test both STRING_UNITS_2 and STRING_UNITS_10 at a time, better failure reporting, test small an huge values. Fixes: 564b026fbd0d28e9 ("string_helpers: fix precision loss for some inputs") Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Cc: James Bottomley <JBottomley@Odin.com> Cc: "James E.J. Bottomley" <jejb@parisc-linux.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/oid_registry.c')
0 files changed, 0 insertions, 0 deletions