Skip to content

Commit 43f6bee

Browse files
committed
iommufd/selftest: Update the fail_nth limit
There are more failure conditions now so 400 iterations is not enough pass them all, up it to 1000. The limit exists so it doesn't infinite loop. Link: https://patch.msgid.link/r/[email protected] Reviewed-by: Nicolin Chen <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Tested-by: Nicolin Chen <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 53d0584 commit 43f6bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/iommu/iommufd_fail_nth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static bool fail_nth_next(struct __test_metadata *_metadata,
113113
* necessarily mean a test failure, just that the limit has to be made
114114
* bigger.
115115
*/
116-
ASSERT_GT(400, nth_state->iteration);
116+
ASSERT_GT(1000, nth_state->iteration);
117117
if (nth_state->iteration != 0) {
118118
ssize_t res;
119119
ssize_t res2;

0 commit comments

Comments
 (0)