IDR test suite: Check handling negative end correctly
authorMatthew Wilcox <mawilcox@microsoft.com>
Tue, 28 Nov 2017 19:27:14 +0000 (14:27 -0500)
committerMatthew Wilcox <mawilcox@microsoft.com>
Tue, 6 Feb 2018 20:07:20 +0000 (15:07 -0500)
commit6e6d301490936789ff57daaaaf63f44d928a4028
treee74910fcfe54a903843c6cc4e6931ed80597dbe0
parent490645d027c5925b30c88b9c7a663850a641d15d
IDR test suite: Check handling negative end correctly

One of the charming quirks of the idr_alloc() interface is that you
can pass a negative end and it will be interpreted as "maximum".  Ensure
we don't break that.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
tools/testing/radix-tree/idr-test.c