Refactoring done in rS317703 broke -c, -l, and -L flags implying suppression of
match printing. Fortunately, this is just a matter of not doing any printing
of the resulting matches and context printing was not broken in this refactoring.
Add some regression tests since this area may still see further refactoring, include
different context flags as well even though they were not broken in this case.
Reported by: markj@
PR: 219077