source: trunk/abcl/test/lisp/abcl/bugs.lisp @ 12417

Last change on this file since 12417 was 12417, checked in by Mark Evenson, 13 years ago

Fix TRANSLATE-LOGICAL-PATHNAME regression.

Problem and solution found by Alan Ruttenburg.

Closes ticket:83.

File size: 1.7 KB
Line 
1(in-package :abcl.test.lisp)
2
3;;; When these bugs get fixed, they should be moved elsewhere in the
4;;; testsuite so they remain fixed.
5
6(deftest bugs.logical-pathname.1
7    #|
8Date: Mon, 18 Jan 2010 10:51:07 -0500
9Message-ID: <29af5e2d1001180751l7cf79a3ay929cef1deb9ed063@mail.gmail.com>
10Subject: Re: [armedbear-devel] translate-logical-pathname and :wild-inferiors
11regression
12From: Alan Ruttenberg <alanruttenberg@gmail.com>
13    |#
14    (progn
15      (setf (logical-pathname-translations "ido") 
16            '(("IDO:IDO-CORE;**;*.*" 
17               "/Users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/ido-core/**/*.*") 
18              ("IDO:IMMUNOLOGY;**;*.*"
19               "/Users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/immunology/**/*.*") 
20              ("IDO:TOOLS;**;*.*" 
21               "/Users/alanr/repos/infectious-disease-ontology/trunk/src/tools/**/*.*") 
22              ("IDO:LIB;**;*.*"
23               "/Users/alanr/repos/infectious-disease-ontology/trunk/lib/**/*.*")))
24      (translate-pathname "IDO:IMMUNOLOGY;" "IDO:IMMUNOLOGY;**;*.*" 
25                          "/Users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/**/*.*"))
26  #P"/users/alanr/repos/infectious-disease-ontology/trunk/src/ontology/")
27
28(deftest bugs.logical.pathname.2
29    #|
30Message-Id: <BBE9D0E5-5166-4D24-9A8A-DC4E766976D1@ISI.EDU>
31From: Thomas Russ <tar@ISI.EDU>
32To: armedbear-devel@common-lisp.net
33Subject: [armedbear-devel] Bug in translate-logical-pathname.
34    |#
35    (progn 
36      (setf (logical-pathname-translations "L")
37            '(("L:NATIVE;**;*.*" "/usr/lisp/abcl/native/**/*.*")))
38      (translate-logical-pathname "L:NATIVE;TEST;FOO.FASL"))
39  #p"/usr/lisp/abcl/native/test/foo.fasl")
40
41     
Note: See TracBrowser for help on using the repository browser.