Extend basic test to check memory leaks

This commit is contained in:
František Hrdina 2024-08-21 14:25:37 +02:00
commit fbbdb01e64
2 changed files with 5 additions and 0 deletions

View file

@ -9,6 +9,7 @@ recommend:
- lockdev
- gcc
- lockdev-devel
- valgrind
duration: 5m
enabled: true
tag:

View file

@ -27,6 +27,10 @@ rlJournalStart
rlAssertGrep "Device is unlocked" lockdev.log
rlPhaseEnd
rlPhaseStartTest "memory leaks check"
rlRun "valgrind --leak-check=full --error-exitcode=1 ./test_lockdev"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"