automated: linux: modules: clear kmemleak state before testing each module
Add kmemleak state clearing before testing each module to ensure clean
starting conditions and prevent false attribution of leaks between modules.
This ensures that:
- Each module starts with a clean kmemleak state
- Leaks detected are attributed to the correct module being tested
- No cross-contamination between different module tests occurs
- Previous module leaks don't affect subsequent module test results
The clearing is only performed when kmemleak is available, maintaining
compatibility with systems that don't have kmemleak support.
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
1 file changed