emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r116007: Bug#13064


From: Michael Albinus
Subject: [Emacs-diffs] trunk r116007: Bug#13064
Date: Mon, 13 Jan 2014 10:53:41 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116007
revision-id: address@hidden
parent: address@hidden
committer: Michael Albinus <address@hidden>
branch nick: trunk
timestamp: Mon 2014-01-13 11:53:36 +0100
message:
  Bug#13064
  
  * automated/ert-tests.el (ert-test-record-backtrace): Reenable
  test case with adapted test string.  (Bug#13064)
modified:
  test/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-8588
  test/automated/ert-tests.el    erttests.el-20110112160650-056hnl9qhpjvjicy-4
=== modified file 'test/ChangeLog'
--- a/test/ChangeLog    2014-01-11 03:55:50 +0000
+++ b/test/ChangeLog    2014-01-13 10:53:36 +0000
@@ -1,3 +1,8 @@
+2014-01-13  Michael Albinus  <address@hidden>
+
+       * automated/ert-tests.el (ert-test-record-backtrace): Reenable
+       test case with adapted test string.  (Bug#13064)
+
 2013-12-28  Glenn Morris  <address@hidden>
 
        * automated/electric-tests.el: Require 'elec-pair.

=== modified file 'test/automated/ert-tests.el'
--- a/test/automated/ert-tests.el       2014-01-01 07:43:34 +0000
+++ b/test/automated/ert-tests.el       2014-01-13 10:53:36 +0000
@@ -375,18 +375,16 @@
   (should-error (macroexpand '(ert-deftest ghi ()
                                 :documentation "foo"))))
 
-;; FIXME Test disabled due to persistent failure owing to lexical binding.
-;; http://debbugs.gnu.org/13064
-;;; (ert-deftest ert-test-record-backtrace ()
-;;;   (let ((test (make-ert-test :body (lambda () (ert-fail "foo")))))
-;;;     (let ((result (ert-run-test test)))
-;;;       (should (ert-test-failed-p result))
-;;;       (with-temp-buffer
-;;;         (ert--print-backtrace (ert-test-failed-backtrace result))
-;;;         (goto-char (point-min))
-;;;         (end-of-line)
-;;;         (let ((first-line (buffer-substring-no-properties (point-min) 
(point))))
-;;;           (should (equal first-line "  signal(ert-test-failed 
(\"foo\"))")))))))
+(ert-deftest ert-test-record-backtrace ()
+  (let ((test (make-ert-test :body (lambda () (ert-fail "foo")))))
+    (let ((result (ert-run-test test)))
+      (should (ert-test-failed-p result))
+      (with-temp-buffer
+        (ert--print-backtrace (ert-test-failed-backtrace result))
+        (goto-char (point-min))
+       (end-of-line)
+       (let ((first-line (buffer-substring-no-properties (point-min) (point))))
+         (should (equal first-line "  (closure (ert--test-body-was-run t) nil 
(ert-fail \"foo\"))()")))))))
 
 (ert-deftest ert-test-messages ()
   :tags '(:causes-redisplay)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]