* maintainer/syntax-checks.mk (sc_tests_plain_sleep): This would match
the "sleep 1" in a comment. So filter out shell-style comments before
matching.
# Use '$sleep' instead. Some file systems (e.g., Windows) have only
# a 2sec resolution.
sc_tests_plain_sleep:
- @if grep -E '\bsleep +[12345]\b' $(xtests); then \
+ @if grep -vE '^[ ]*#' $(xtests) \
+ | grep -E '\bsleep +[12345]\b' | grep .; then \
echo 'Do not use "sleep x" in the above tests. Use "$$sleep" instead.' 1>&2; \
exit 1; \
fi