]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d687171621caaf40af5353bea2cf2c726d75a87
treeb4a3f935b649555ad08d2f747cbd199d78922352
parent81ec5e16ab08560f07fafef622a1b8ebfd16b798
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