Use diff command of git bash in preference to wsl diff command.
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Fri, 28 Feb 2020 04:44:44 +0000 (13:44 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Fri, 28 Feb 2020 05:23:23 +0000 (14:23 +0900)
Unfortunately >> (appending redirected output) doesn't work well with wsl.

test/runsuite.c

index 0e2da5136782286e1754648b26190f3f3148f580..3be5732bf32a7e344684d21bf4aaa5f32e314c04 100644 (file)
@@ -200,8 +200,8 @@ runtest(const char *binname, const char *testname, int testno, const char *input
    };
    static const struct diff_info diffi[] = {
        { "diff", "diff -c --strip-trailing-cr \"%s\" \"%s\" %s" }  // cygwin etc
-       , { "wsl", "wsl diff -c --strip-trailing-cr \"`wslpath '%s'`\" \"`wslpath '%s'`\" %s" } // WSL
        , { "git", "git diff --no-index -w \"%s\" \"%s\" %s" }  // git bash for Windows
+       , { "wsl", "wsl diff -c --strip-trailing-cr \"`wslpath '%s'`\" \"`wslpath '%s'`\" %s" } // WSL
        , { "fc", "fc /N \"%s\" \"%s\" %s" }
    };
 #endif /* WIN32 */