]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Fix directory check for Windows paths
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 9 Dec 2025 18:14:53 +0000 (19:14 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 9 Dec 2025 18:19:03 +0000 (19:19 +0100)
msys2 jobs have for some strange reason started to fail, so msys2's pwd
must have started returning full pathname including ":" on Windows.

test/run

index f0a33191744328e025c80526a4d06ab1bf17d2e4..092b78f2d54c5ecf553cd001f9b837670c94fc2d 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -501,10 +501,10 @@ export LC_ALL=C
 
 trap terminate_all_children EXIT # also clean up after exceptional code flow
 
-if pwd | grep '[^A-Za-z0-9/.,=_%+-]' >/dev/null 2>&1; then
+if pwd | grep '[^A-Za-z0-9/.,=_:%+-]' >/dev/null 2>&1; then
     cat <<EOF
 Error: The test suite doesn't work in directories with whitespace or other
-funny characters in the name. Sorry.
+funny characters in the name, sorry. CWD: [$(pwd)]
 EOF
     exit 1
 fi