tests: make sure rename pretty print works
[gitweb.git] / t / t7810-grep.sh
index 69bd576d1c1a0bfcd086b68d8dc07c03c22b7a5a..6379ad60bcb9b5b56eb773b5a987745356c24df6 100755 (executable)
@@ -658,9 +658,9 @@ test_expect_success LIBPCRE 'grep -P -v pattern' '
 '
 
 test_expect_success LIBPCRE 'grep -P -i pattern' '
-       {
-               echo "hello.c:  printf(\"Hello world.\n\");"
-       } >expected &&
+       cat >expected <<-EOF &&
+       hello.c:        printf("Hello world.\n");
+       EOF
        git grep -P -i "PRINTF\([^\d]+\)" hello.c >actual &&
        test_cmp expected actual
 '