Set relevancy for valgrind in basic test

This commit is contained in:
František Hrdina 2025-02-19 14:09:35 +01:00
commit 931688473e
2 changed files with 9 additions and 3 deletions

View file

@ -15,6 +15,9 @@ enabled: true
tag:
- Tier1
tier: '1'
link:
- verifies: https://issues.redhat.com/browse/RHEL-39379
- verifies: https://issues.redhat.com/browse/RHEL-80167
adjust:
- enabled: false
when: distro < rhel-7

View file

@ -27,9 +27,12 @@ rlJournalStart
rlAssertGrep "Device is unlocked" lockdev.log
rlPhaseEnd
rlPhaseStartTest "memory leaks check"
rlRun "valgrind --leak-check=full --error-exitcode=1 ./test_lockdev"
rlPhaseEnd
# memory leaks not fixed on rhel8/c8s and fc42 and older
if rlIsRHEL '>=9.6' || rlIsCentOS '>=9' || rlIsFedora '>=43'; then
rlPhaseStartTest "memory leaks check"
rlRun "valgrind --leak-check=full --error-exitcode=1 ./test_lockdev"
rlPhaseEnd
fi
rlPhaseStartCleanup
rlRun "popd"