Don't use less in highlighting test

It doesn't have to be installed.

`cat` is in our dependencies, so we can assume it's there.

Fixes #5436.
This commit is contained in:
Fabian Homborg 2018-12-28 17:57:53 +01:00
parent 9e4ece8d89
commit 742fde0dd6

View file

@ -4243,7 +4243,8 @@ static void test_highlighting() {
{L"cat", highlight_spec_command},
{L"/dev/null", highlight_spec_param},
{L"|", highlight_spec_statement_terminator},
{L"less", highlight_spec_command},
// This is bogus, but we used to use "less" here and that doesn't have to be installed.
{L"cat", highlight_spec_command},
{L"2>", highlight_spec_redirection},
});