Changeset 12948 for trunk/abcl/test/lisp/abcl/pathname-tests.lisp
- Timestamp:
- 10/03/10 21:42:09 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/test/lisp/abcl/pathname-tests.lisp
r11599 r12948 100 100 (let ((result (namestring (apply 'translate-pathname args)))) 101 101 (equal result 102 #-windows expected 103 #+windows (substitute #\\ #\/ expected)))) 102 ;;#-windows 103 expected 104 ;;#+windows (substitute #\\ #\/ expected) 105 ))) 104 106 105 107 (defmacro check-readable (pathname) … … 113 115 (defmacro check-namestring (pathname namestring) 114 116 `(string= (namestring ,pathname) 115 #+windows (substitute #\\ #\/ ,namestring) 116 #-windows ,namestring)) 117 ;;#+windows (substitute #\\ #\/ ,namestring) 118 ;;#-windows 119 ,namestring)) 117 120 118 121 ;; Define a logical host. … … 308 311 309 312 (deftest directory-namestring.1 310 (equal (directory-namestring #-windows #p"./" 311 #+windows #p".\\") 312 #-windows "./" 313 #+windows ".\\") 313 (equal (directory-namestring #p"./") 314 "./") 314 315 t) 315 316 #+lispworks … … 385 386 (equal (directory-namestring #-windows #p"../" 386 387 #+windows #p"..\\") 387 #-windows "../" 388 #+windows "..\\") 388 "../") 389 389 t) 390 390 … … 403 403 (deftest physical.31 404 404 (string= (namestring (make-pathname :directory '(:relative :up))) 405 #+windows "..\\" 406 #-windows "../") 405 "../") 407 406 t) 408 407 … … 919 918 (deftest translate-pathname.12 920 919 (string= (namestring (translate-pathname "foo.bar" "*.*" "/usr/local/*.*")) 921 #-windows "/usr/local/foo.bar" 922 #+windows "\\usr\\local\\foo.bar") 920 "/usr/local/foo.bar") 923 921 t) 924 922 … … 1119 1117 (equal (enough-namestring #p"foo/bar" #p"foo") "foo/bar") 1120 1118 #+windows 1121 (equal (enough-namestring #p"foo\\bar" #p"foo") "foo \\bar")1119 (equal (enough-namestring #p"foo\\bar" #p"foo") "foo/bar") 1122 1120 t) 1123 1121 … … 1252 1250 #-clisp 1253 1251 (equal (namestring (translate-logical-pathname "demo0:x.y")) 1254 #-windows "/tmp/x.y" 1255 #+windows "\\tmp\\x.y") 1252 ;;#-windows 1253 "/tmp/x.y" 1254 ;;#+windows "\\tmp\\x.y" 1255 ) 1256 1256 t) 1257 1257 … … 1627 1627 (deftest sbcl.59 1628 1628 (string= (with-standard-io-syntax (write-to-string #p"/foo")) 1629 #-windows "#P\"/foo\"" 1630 #+(and windows (not lispworks)) "#P\"\\\\foo\"" 1631 #+(and windows lispworks) "#P\"/foo\"") 1629 ;;#-windows "#P\"/foo\"" 1630 ;;#+(and windows (not lispworks)) "#P\"\\\\foo\"" 1631 ;;#+(and windows lispworks) 1632 "#P\"/foo\"") 1632 1633 t) 1633 1634 … … 1635 1636 (deftest sbcl.60 1636 1637 (string= (with-standard-io-syntax (write-to-string #p"/foo" :readably nil)) 1637 #-windows "#P\"/foo\"" 1638 #+(and windows (not lispworks)) "#P\"\\\\foo\"" 1639 #+(and windows lispworks) "#P\"/foo\"") 1638 ;;#-windows 1639 "#P\"/foo\"" 1640 ;;#+(and windows (not lispworks)) "#P\"\\\\foo\"" 1641 ;;#+(and windows lispworks) "#P\"/foo\"" 1642 ) 1640 1643 t) 1641 1644 … … 1643 1646 (deftest sbcl.61 1644 1647 (string= (with-standard-io-syntax (write-to-string #p"/foo" :escape nil)) 1645 #-windows "#P\"/foo\"" 1646 #+(and windows (not lispworks)) "#P\"\\\\foo\"" 1647 #+(and windows lispworks) "#P\"/foo\"") 1648 ;;#-windows 1649 "#P\"/foo\"" 1650 ;;#+(and windows (not lispworks)) "#P\"\\\\foo\"" 1651 ;;#+(and windows lispworks) "#P\"/foo\"" 1652 ) 1648 1653 t) 1649 1654 1650 1655 (deftest sbcl.62 1651 1656 (string= (with-standard-io-syntax (write-to-string #p"/foo" :readably nil :escape nil)) 1652 #-windows "/foo" 1653 #+windows "\\foo") 1654 t) 1657 ;;#-windows 1658 "/foo" 1659 ;;#+windows "\\foo" 1660 ) 1661 t)
Note: See TracChangeset
for help on using the changeset viewer.