diff --git a/test/script-support.lisp b/test/script-support.lisp
index 39731bbe5fa446370d53a333d336d4f92151aafe..4496c9a6618672c2dab5179eb3a559b9700fd6f6 100644
--- a/test/script-support.lisp
+++ b/test/script-support.lisp
@@ -167,8 +167,15 @@ Some constraints:
         the other expression ~S yields that:~%  ~S~%  ~S~%"
         qx x (pathname-components x)
         qy y (pathname-components y)))
+    ;; accept equalp namestrings, to account for case-independent filesystems
+    ((equalp (namestring x) (namestring y))
+     (warn "These two expressions yield pathnames that have equalp namestrings yet are not pathname-equal~%~
+        the first expression ~S yields this:~%  ~S~%  ~S~%
+        the other expression ~S yields that:~%  ~S~%  ~S~%"
+        qx x (pathname-components x)
+        qy y (pathname-components y)))
     (t
-     (error "These two expressions yield paths that are not pathname-equal~%~
+     (error "These two expressions yield paths that are equal in any way:~%~
         the first expression ~S yields this:~%  ~S~%  ~S~%
         the other expression ~S yields that:~%  ~S~%  ~S~%"
         qx x (pathname-components x)
diff --git a/test/test-utilities.script b/test/test-utilities.script
index 310451d35793dd584df3d4af355a723845e2ce02..c698b6151406ae35ecd9783cb2a0e31ce655eddc 100644
--- a/test/test-utilities.script
+++ b/test/test-utilities.script
@@ -8,13 +8,13 @@
    :ensure-directory t))
 
 (chdir *asdf-directory*)
-(assert (pathname-equal *asdf-directory* (getcwd)))
-(assert (pathname-equal *asdf-directory* (getcwd-from-run-program)))
+(assert-pathname-equal *asdf-directory* (getcwd)))
+(assert-pathname-equal *asdf-directory* (getcwd-from-run-program)))
 (assert (probe-file* "asdf.asd"))
 
 (chdir *test-directory*)
-(assert (pathname-equal *test-directory* (getcwd)))
-(assert (pathname-equal *test-directory* (getcwd-from-run-program)))
+(assert-pathname-equal *test-directory* (getcwd))
+(assert-pathname-equal *test-directory* (getcwd-from-run-program))
 (assert (probe-file* "test-utilities.script"))
 
 (assert
@@ -280,10 +280,6 @@
   (assert (not (base-string-p (strcat (basify "ab") #\c *last-char* (unbasify "d")))))
   (assert (base-string-p (strcat (basify "ab") #\c #\d))))
 
-(or #+os-windows ;; Avoid C:\Users vs C:\users on SBCL.
-    (equalp (namestring *test-directory*) (namestring (getcwd)))
-    (assert-pathname-equal *test-directory* (getcwd)))
-
 (assert-equal +crlf+ (map 'string 'code-char '(13 10)))
 (assert-equal +lf+ (map 'string 'code-char '(10)))
 (assert-equal +cr+ (map 'string 'code-char '(13)))