Skip to content

Commit e7ea45f

Browse files
committed
Added leak check for running cf-check on non-existent file
Ticket: CFE-4508 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 824bd0c commit e7ea45f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/valgrind-check/valgrind.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ echo "Running cf-check diagnose --validate on all databases:"
9898
valgrind $VG_OPTS /var/cfengine/bin/cf-check diagnose --validate 2>&1 | tee cf_check_validate_all_1.txt
9999
check_valgrind_output cf_check_validate_all_1.txt
100100

101+
echo "Running cf-check diagnose --validate on non-existent file:"
102+
valgrind $VG_OPTS /var/cfengine/bin/cf-check diagnose --validate no-such-file.lmdb 2>&1 | tee cf_check_validate_non_existent.txt
103+
check_valgrind_output cf_check_validate_non_existent.txt
104+
101105
check_masterfiles_and_inputs
102106

103107
print_ps

0 commit comments

Comments
 (0)