Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Moringen
asdf
Commits
ca006497
Commit
ca006497
authored
11 years ago
by
Robert P. Goldman
Browse files
Options
Downloads
Patches
Plain Diff
Add docstring for LEAVE-TEST in test code.
parent
94ef1526
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/script-support.lisp
+18
-16
18 additions, 16 deletions
test/script-support.lisp
with
18 additions
and
16 deletions
test/script-support.lisp
+
18
−
16
View file @
ca006497
...
...
@@ -32,9 +32,9 @@ Some constraints:
(
in-package
:asdf-test
)
(
declaim
(
optimize
(
speed
2
)
(
safety
3
)
#-
(
or
allegro
gcl
genera
)
(
debug
3
)
#+
(
or
cmu
scl
)
(
c::brevity
2
)))
#+
(
or
cmu
scl
)
(
c::brevity
2
)))
(
proclaim
'
(
optimize
(
speed
2
)
(
safety
3
)
#-
(
or
allegro
gcl
genera
)
(
debug
3
)
#+
(
or
cmu
scl
)
(
c::brevity
2
)))
#+
(
or
cmu
scl
)
(
c::brevity
2
)))
(
defvar
*trace-symbols*
`
(
;; If you want to trace some stuff while debugging ASDF,
...
...
@@ -123,23 +123,23 @@ Some constraints:
(
format
t
"~S and ~S both evaluate to same path:~% ~S~%"
qx
qy
x
))
((
acall
:pathname-equal
x
y
)
(
warn
"These two expressions yield pathname-equal yet not equal path~%~
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
)))
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~%~
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
)))))
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
)))))
(
defmacro
assert-pathname-equal
(
x
y
)
`
(
assert-pathname-equal-helper
',x
,
x
',y
,
y
))
(
defun
assert-length-equal-helper
(
qx
x
qy
y
)
(
unless
(
=
(
length
x
)
(
length
y
))
(
error
"These two expressions yield sequences of unequal length~%
The first, ~S, has value ~S of length ~S~%
The other, ~S, has value ~S of length ~S~%"
The first, ~S, has value ~S of length ~S~%
The other, ~S, has value ~S of length ~S~%"
qx
x
(
length
x
)
qy
y
(
length
y
))))
(
defun
assert-pathnames-equal-helper
(
qx
x
qy
y
)
(
assert-length-equal-helper
qx
x
qy
y
)
...
...
@@ -259,15 +259,17 @@ Some constraints:
#+
mcl
(
ccl:quit
)
;; or should we use FFI to call libc's exit(3) ?
#+
mkcl
(
mk-ext:quit
:exit-code
code
)
#+
sbcl
#.
(
let
((
exit
(
find-symbol
"EXIT"
:sb-ext
))
(
quit*
(
find-symbol
"QUIT"
:sb-ext
)))
(
cond
(
exit
`
(
,
exit
:code
code
:abort
t
))
(
quit*
`
(
,
quit*
:unix-status
code
:recklessly-p
t
))))
(
quit*
(
find-symbol
"QUIT"
:sb-ext
)))
(
cond
(
exit
`
(
,
exit
:code
code
:abort
t
))
(
quit*
`
(
,
quit*
:unix-status
code
:recklessly-p
t
))))
#-
(
or
abcl
allegro
clisp
clozure
cmu
ecl
gcl
genera
lispworks
mcl
mkcl
sbcl
scl
xcl
)
(
error
"~S called with exit code ~S but there's no quitting on this implementation"
'quit
code
))
(
defun
leave-test
(
message
return
)
"Print MESSAGE and throw RETURN, which should be a POSIX error
code (an integer, 0 for success), up as exit code."
(
finish-outputs*
)
(
fresh-line
*error-output*
)
(
when
message
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment