<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
img {
max-width: 100%;
height: auto;
}
p.details {
font-style:italic;
color:#777
}
.footer p {
font-size:small;
color:#777
}
pre.commit-message {
white-space: pre-wrap;
}
.file-stats a {
text-decoration: none;
}
.file-stats .new-file {
color: #090;
}
.file-stats .deleted-file {
color: #B00;
}
</style>
<body>
<div class='content'>
<h3>Raymond Toy pushed to branch master at <a href="https://gitlab.common-lisp.net/cmucl/cmucl">cmucl / cmucl</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/c91ff8298e9007102a71242c88c005a334f6fbfb">c91ff829</a></strong>
<div>
<span>by Raymond Toy</span>
<i>at 2015-12-12T08:51:40Z</i>
</div>
<pre class='commit-message'>Update lisp-unit.</pre>
</li>
</ul>
<h4>3 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
src/contrib/lisp-unit/internal-test/example-tests.lisp
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
src/contrib/lisp-unit/lisp-unit.lisp
</a>
</li>
<li class='file-stats'>
<a href='#diff-2'>
src/general-info/release-21b.txt
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.common-lisp.net/cmucl/cmucl/commit/c91ff8298e9007102a71242c88c005a334f6fbfb#diff-0'>
<strong>
src/contrib/lisp-unit/internal-test/example-tests.lisp
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/contrib/lisp-unit/internal-test/example-tests.lisp
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/contrib/lisp-unit/internal-test/example-tests.lisp
</span><span style="color: #aaaaaa">@@ -57,6 +57,10 @@
</span> (dotimes (i 5)
(assert-equal i (my-sqrt (* i i)) i)))
<span style="color: #000000;background-color: #ddffdd">+(define-test cl-user::my-sqrt
+ (dotimes (i 5)
+ (assert-equal i (my-sqrt (* i i)) i)))
+
</span> ;;; Macro
(defmacro my-macro (arg1 arg2)
</code></pre>
<br>
</li>
<li id='diff-1'>
<a href='https://gitlab.common-lisp.net/cmucl/cmucl/commit/c91ff8298e9007102a71242c88c005a334f6fbfb#diff-1'>
<strong>
src/contrib/lisp-unit/lisp-unit.lisp
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/contrib/lisp-unit/lisp-unit.lisp
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/contrib/lisp-unit/lisp-unit.lisp
</span><span style="color: #aaaaaa">@@ -126,8 +126,9 @@ functions or even macros does not require reloading any tests.
</span> "If not NIL, enter the debugger when an error is encountered in an
assertion.")
<span style="color: #000000;background-color: #ffdddd">-(defparameter *signal-results* nil
- "Signal the result if non NIL.")
</span><span style="color: #000000;background-color: #ddffdd">+(defun use-debugger (&optional (flag t))
+ "Use the debugger when testing, or not."
+ (setq *use-debugger* flag))
</span>
(defun use-debugger-p (condition)
"Debug or ignore errors."
<span style="color: #aaaaaa">@@ -136,9 +137,8 @@ assertion.")
</span> (y-or-n-p "~A -- debug?" condition))
(*use-debugger*)))
<span style="color: #000000;background-color: #ffdddd">-(defun use-debugger (&optional (flag t))
- "Use the debugger when testing, or not."
- (setq *use-debugger* flag))
</span><span style="color: #000000;background-color: #ddffdd">+(defparameter *signal-results* nil
+ "Signal the result if non NIL.")
</span>
(defun signal-results (&optional (flag t))
"Signal the results for extensibility."
<span style="color: #aaaaaa">@@ -238,7 +238,7 @@ assertion.")
</span> ((and (stringp item) (not doc) (rest body))
(if tag
(values doc tag (rest body))
<span style="color: #000000;background-color: #ffdddd">- (parse-body (rest body) doc tag)))
</span><span style="color: #000000;background-color: #ddffdd">+ (parse-body (rest body) item tag)))
</span> (t (values doc tag body)))))
(defun test-name-error-report (test-name-error stream)
<span style="color: #aaaaaa">@@ -260,20 +260,31 @@ assertion.")
</span> name
(error 'test-name-error :datum name)))
<span style="color: #000000;background-color: #ddffdd">+(defun test-package (name)
+ "Return the package for storing the test."
+ (multiple-value-bind (symbol status)
+ (find-symbol (symbol-name name))
+ (declare (ignore symbol))
+ (ecase status
+ ((:internal :external nil)
+ (symbol-package name))
+ (:inherited *package*))))
+
</span> (defmacro define-test (name &body body)
"Store the test in the test database."
(let ((qname (gensym "NAME-")))
(multiple-value-bind (doc tag code) (parse-body body)
`(let* ((,qname (valid-test-name ',name))
<span style="color: #000000;background-color: #ffdddd">- (doc (or ,doc (string ,qname))))
</span><span style="color: #000000;background-color: #ddffdd">+ (doc (or ,doc (symbol-name ,qname)))
+ (package (test-package ,qname)))
</span> (setf
;; Unit test
<span style="color: #000000;background-color: #ffdddd">- (gethash ,qname (package-table *package* t))
</span><span style="color: #000000;background-color: #ddffdd">+ (gethash ,qname (package-table package t))
</span> (make-instance 'unit-test :doc doc :code ',code))
;; Tags
<span style="color: #000000;background-color: #ffdddd">- (loop for tag in ',tag do
- (pushnew
- ,qname (gethash tag (package-tags *package* t))))
</span><span style="color: #000000;background-color: #ddffdd">+ (loop
+ for tag in ',tag do
+ (pushnew ,qname (gethash tag (package-tags package t))))
</span> ;; Return the name of the test
,qname))))
</code></pre>
<br>
</li>
<li id='diff-2'>
<a href='https://gitlab.common-lisp.net/cmucl/cmucl/commit/c91ff8298e9007102a71242c88c005a334f6fbfb#diff-2'>
<strong>
src/general-info/release-21b.txt
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/general-info/release-21b.txt
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/general-info/release-21b.txt
</span><span style="color: #aaaaaa">@@ -43,6 +43,7 @@ New in this release:
</span> * Unix support on Linux has been unified with all other OSes.
Thus, src/code/unix-glibc2.lisp is no longer used.
* Micro-optimize modular shifts on x86.
<span style="color: #000000;background-color: #ddffdd">+ * Update lisp-unit to commit e6c259f.
</span>
* ANSI compliance fixes:
</code></pre>
<br>
</li>
</div>
<div class='footer' style='margin-top: 10px;'>
<p>
—
<br>
<a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/c91ff8298e9007102a71242c88c005a334f6fbfb">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.common-lisp.net.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.common-lisp.net/cmucl/cmucl/commit/c91ff8298e9007102a71242c88c005a334f6fbfb"}}</script>
</p>
</div>
</body>
</html>