i18n: git-commit formatting messages
[gitweb.git] / t / t3700-add.sh
index ac115edbb7653a682002b872e6d9463b09ef5d94..7de42faf4887c6e8137c2498a96b41a4afe4e672 100755 (executable)
@@ -268,8 +268,12 @@ test_expect_success 'git add --dry-run of existing changed file' "
 
 test_expect_success 'git add --dry-run of non-existing file' "
        echo ignored-file >>.gitignore &&
-       test_must_fail git add --dry-run track-this ignored-file >actual 2>&1 &&
-       echo \"fatal: pathspec 'ignored-file' did not match any files\" | test_cmp - actual
+       test_must_fail git add --dry-run track-this ignored-file >actual 2>&1
+"
+
+test_expect_success C_LOCALE_OUTPUT 'git add --dry-run of an existing file output' "
+       echo \"fatal: pathspec 'ignored-file' did not match any files\" >expect &&
+       test_cmp expect actual
 "
 
 cat >expect.err <<\EOF