Diff options
Diffstat (limited to 'tests/t0502-syntax-highlight.sh')
| -rwxr-xr-x | tests/t0502-syntax-highlight.sh | 5 |
1 file changed, 3 insertions, 2 deletions
diff --git a/tests/t0502-syntax-highlight.sh b/tests/t0502-syntax-highlight.sh index 2ca3c9f..dbb7bb0 100755 --- a/tests/t0502-syntax-highlight.sh +++ b/tests/t0502-syntax-highlight.sh @@ -68,9 +68,10 @@ test_expect_success CGIT_LUA 'bytes between tokens reach the page escaped' ' # has to hand the source back escaped instead. test_expect_success CGIT_LUA 'without scintillua the source is served escaped' ' CGIT_SCINTILLUA_PATH=/nonexistent CGIT_CONFIG="$PWD/cgitrc" \ - QUERY_STRING="url=fake/tree/hello.fake" cgit >tmp && + QUERY_STRING="url=fake/tree/hello.fake" cgit >tmp 2>err && grep "if 42 & zz" tmp && - ! grep "hl-keyword" tmp + ! grep "hl-keyword" tmp && + grep "Unable to load the Scintillua lexers" err ' test_expect_success CGIT_LUA 'a lone carriage return reaches the page as an escape' ' |
