diff --git a/tests/generic/504 b/tests/generic/504 index c7d015db..21d86051 100755 --- a/tests/generic/504 +++ b/tests/generic/504 @@ -51,7 +51,7 @@ flock -x 9 cat /proc/locks >> $seqres.full # Checking -grep -qw $tf_inode /proc/locks || echo "lock info not found" +grep -q ":$tf_inode " /proc/locks || echo "lock info not found" # success, all done status=0