From 16069cfe80901e2c0f5bb57c2895fff95fa46b7f Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Fri, 28 Feb 2020 13:44:44 +0900 Subject: [PATCH] Use diff command of git bash in preference to wsl diff command. Unfortunately >> (appending redirected output) doesn't work well with wsl. --- test/runsuite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runsuite.c b/test/runsuite.c index 0e2da51..3be5732 100644 --- a/test/runsuite.c +++ b/test/runsuite.c @@ -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 */ -- 2.39.5