From 7c3eccdb93a474aa3e8d5ed6c646d1b994403752 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Sat, 2 Aug 2025 03:42:44 -0600 Subject: [PATCH] t: cleanup win check --- t/test-lib.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/test-lib.sh b/t/test-lib.sh index 32112a4..19bd8c1 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -22,10 +22,12 @@ test_set_prereq() { } satisfied_prereq=" " -if [[ $(uname -s) = MSYS* ]] || [[ $(uname -s) = MINGW* ]]; then +case "$(uname -s)" in +MSYS*|MINGW*) test_set_prereq WIN export TEST_CMP='diff --strip-trailing-cr -u' -fi + ;; +esac test_cmp() { ${TEST_CMP:-diff -u} "$@"