aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorRobin Murphy <[email protected]>2023-11-16 16:52:15 +0000
committerJason Gunthorpe <[email protected]>2023-11-20 21:29:31 -0400
commit98594181944daa201481ad63242806beb7c89ff4 (patch)
tree45f01db480a10d66b1f3b8963d2f692c12ba11c5 /scripts/generate_rust_analyzer.py
parent98b1cc82c4affc16f5598d4fa14b1858671b2263 (diff)
iommufd/selftest: Fix _test_mock_dirty_bitmaps()
The ASSERT_EQ() macro sneakily expands to two statements, so the loop here needs braces to ensure it captures both and actually terminates the test upon failure. Where these tests are currently failing on my arm64 machine, this reduces the number of logged lines from a rather unreasonable ~197,000 down to 10. While we're at it, we can also clean up the tautologous "count" calculations whose assertions can never fail unless mathematics and/or the C language become fundamentally broken. Fixes: a9af47e382a4 ("iommufd/selftest: Test IOMMU_HWPT_GET_DIRTY_BITMAP") Link: https://lore.kernel.org/r/90e083045243ef407dd592bb1deec89cd1f4ddf2.1700153535.git.robin.murphy@arm.com Signed-off-by: Robin Murphy <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Joao Martins <[email protected]> Tested-by: Joao Martins <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions