idr test suite: Fix ida_test_random()
authorMatthew Wilcox <mawilcox@microsoft.com>
Fri, 10 Nov 2017 01:15:14 +0000 (20:15 -0500)
committerMatthew Wilcox <mawilcox@microsoft.com>
Tue, 6 Feb 2018 20:07:20 +0000 (15:07 -0500)
commit490645d027c5925b30c88b9c7a663850a641d15d
treeb4a3f935b649555ad08d2f747cbd199d78922352
parent051803c0d01f4d8a197ecc08bfeffdff00d86c62
idr test suite: Fix ida_test_random()

The test was checking the wrong errno; ida_get_new_above() returns
EAGAIN, not ENOMEM on memory allocation failure.  Double the number of
threads to increase the chance that we actually exercise this path
during the test suite (it was a bit sporadic before).

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