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
Hugo Ishimaru
asdf
Commits
347bcab6
Commit
347bcab6
authored
11 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Try to debug test-program.script on CLISP, it unbreaks the test (!)
Tweak some test output.
parent
8e8cb498
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/script-support.lisp
+4
-2
4 additions, 2 deletions
test/script-support.lisp
test/test-program.script
+4
-3
4 additions, 3 deletions
test/test-program.script
with
8 additions
and
5 deletions
test/script-support.lisp
+
4
−
2
View file @
347bcab6
...
@@ -142,7 +142,7 @@ Some constraints:
...
@@ -142,7 +142,7 @@ Some constraints:
(
defun
assert-pathname-equal-helper
(
qx
x
qy
y
)
(
defun
assert-pathname-equal-helper
(
qx
x
qy
y
)
(
cond
(
cond
((
equal
x
y
)
((
equal
x
y
)
(
format
t
"~S and ~S both evaluate to same path:~% ~S~%"
qx
qy
x
))
(
format
t
"~S and
~%
~S both evaluate to same path:~% ~S~%"
qx
qy
x
))
((
ucall
:pathname-equal
x
y
)
((
ucall
:pathname-equal
x
y
)
(
warn
"These two expressions yield pathname-equal yet not equal path~%~
(
warn
"These two expressions yield pathname-equal yet not equal path~%~
the first expression ~S yields this:~% ~S~% ~S~%
the first expression ~S yields this:~% ~S~% ~S~%
...
@@ -532,7 +532,9 @@ is bound, write a message and exit on an error. If
...
@@ -532,7 +532,9 @@ is bound, write a message and exit on an error. If
(
asym
:pathname-equal
))
(
asym
:pathname-equal
))
(
format
t
"Comparing directories~%"
)
(
format
t
"Comparing directories~%"
)
(
let
((
x
(
acall
:pathname-directory-pathname
(
nth-value
2
(
acall
:locate-system
:test-asdf
)))))
(
let
((
x
(
acall
:pathname-directory-pathname
(
nth-value
2
(
acall
:locate-system
:test-asdf
)))))
(
assert-pathname-equal
*test-directory*
x
)
;; not always EQUAL (!)
(
assert-pathname-equal-helper
;; not always EQUAL (!)
'*test-directory*
*test-directory*
'
(
:pathname-directory-pathname
(
nth-value
2
(
:locate-system
:test-asdf
)))
x
)
(
unless
(
equal
*test-directory*
x
)
(
unless
(
equal
*test-directory*
x
)
(
format
t
"Interestingly, while *test-directory* has components~% ~S~%~
(
format
t
"Interestingly, while *test-directory* has components~% ~S~%~
ASDF finds the ASDs in~% ~S~%Using the latter.~%"
ASDF finds the ASDs in~% ~S~%Using the latter.~%"
...
...
This diff is collapsed.
Click to expand it.
test/test-program.script
+
4
−
3
View file @
347bcab6
...
@@ -30,11 +30,12 @@
...
@@ -30,11 +30,12 @@
(delete-file-if-exists exe)
(delete-file-if-exists exe)
(assert-equal
(assert-equal
(
multiple
-value
-list
(
nth
-value
2
(run-program
(run-program
(symbol-call :lisp-invocation :lisp-invocation-arglist
(symbol-call :lisp-invocation :lisp-invocation-arglist
:load (native-namestring (subpathname *test-directory* "make-hello-world.lisp")))))
:load (native-namestring (subpathname *test-directory* "make-hello-world.lisp")))
'(nil nil 0))
:output t :error-output :output :input nil))
0)
(assert (probe-file* exe))
(assert (probe-file* exe))
(assert-equal (run-program `(,(native-namestring exe)) :output :lines)
(assert-equal (run-program `(,(native-namestring exe)) :output :lines)
...
...
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