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/3-v1-02cd136829df+31-iommufd_syz_fput_jgg@nvidia.com Reviewed-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Tested-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent 53d0584 commit 43f6bee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)