From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gemini Lasswell Newsgroups: gmane.emacs.bugs Subject: bug#28333: 26.0.50; Backtrace not printed when ERT test fails Date: Sat, 02 Sep 2017 12:20:09 -0700 Message-ID: <87a82caowm.fsf@chinook> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1504380151 26531 195.159.176.226 (2 Sep 2017 19:22:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 2 Sep 2017 19:22:31 +0000 (UTC) To: 28333@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 02 21:22:16 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doDzg-00063v-RT for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Sep 2017 21:22:13 +0200 Original-Received: from localhost ([::1]:47955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doDzn-0003MZ-QJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Sep 2017 15:22:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doDzc-0003In-1z for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 15:22:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doDzW-0008Us-H8 for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 15:22:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35237) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doDzW-0008UJ-Cc for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 15:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1doDzW-0006Eo-44 for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 15:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gemini Lasswell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Sep 2017 19:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28333 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150438007123920 (code B ref -1); Sat, 02 Sep 2017 19:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Sep 2017 19:21:11 +0000 Original-Received: from localhost ([127.0.0.1]:43916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doDyh-0006Dh-0S for submit@debbugs.gnu.org; Sat, 02 Sep 2017 15:21:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doDye-0006DT-Gc for submit@debbugs.gnu.org; Sat, 02 Sep 2017 15:21:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doDyT-0007az-Vl for submit@debbugs.gnu.org; Sat, 02 Sep 2017 15:21:03 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52386) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1doDyT-0007as-Rp for submit@debbugs.gnu.org; Sat, 02 Sep 2017 15:20:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doDyO-0002sT-7l for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 15:20:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doDyI-0007Nx-Q3 for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 15:20:52 -0400 Original-Received: from aibo.runbox.com ([91.220.196.211]:55702) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doDyI-0007Hi-6d for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 15:20:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Date:Subject:To:From; bh=3BmGJw0WcgirzKymQGjWYwzTQOwFCn7GDvSdHB0RBhw=; b=OGEFlhhZlyj6CwnOeJGsKJzofS Zt/2juozuC1ZoB+aCI4pC5KoZpMA8hEh/oFTHL6BOiZW8ndaP/3fTo7phNXJ6430+TOh7HjaWAxhL 57qiwDIuP7V8uOJlWTWd1/nnYmXeJuK9YDfb4TsO2d9HF3Kh3EfRJhVtOGbO3PiPOZRG51lw9/Ajw /hSU/aLl3N9vaDvGIytNcUj3x6wUScgQ9eCoNXIxhDZ7DN16Hcy7Bi2D1oRLBoX3ewgHn4tW/ml1x AfdlVJlHu8e3FViibFIY90JEAOeFl3WosdMFQ3GaCqiFpmkahexazP8R4I4nN+XFgN8j7XtPltvV3 fLw3Ow7g==; Original-Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1doDy8-0001nA-EL for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 21:20:36 +0200 Original-Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=chinook) by mailfront11.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1doDxu-0000AF-1S for bug-gnu-emacs@gnu.org; Sat, 02 Sep 2017 21:20:22 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136517 Archived-At: ERT used to print a backtrace for every failed test, but recently that stopped happening. I git bisected and found that the commit which introduced the problem is ead545824e, "Improve ert backtrace recording". Here's the test I've been using to reproduce the problem: (require 'ert) (defun div0 (n) (/ n (- n n))) (ert-deftest failing-test () "Check if backtrace works" (should (div0 1))) When running the test interactively, pressing b at the test in ERT's results buffer shows an empty backtrace. And here is the output of running "make -C test fail" with the code above saved in test/lisp/fail.el: make: Entering directory '/home/gemini/src/emacs/test' make[1]: Entering directory '/home/gemini/src/emacs/test' GEN lisp/fail.log Running 1 tests (2017-09-02 11:46:08-0700) Test failing-test backtrace: Test failing-test condition: (arith-error) FAILED 1/1 failing-test Ran 1 tests, 0 results as expected, 1 unexpected (2017-09-02 11:46:08-0700) 1 unexpected results: FAILED failing-test make[1]: *** [Makefile:149: lisp/fail.log] Error 1 make[1]: Leaving directory '/home/gemini/src/emacs/test' make: *** [Makefile:198: lisp/fail] Error 2 make: Leaving directory '/home/gemini/src/emacs/test' In GNU Emacs 26.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.22.8) of 2017-09-02 built on chinook Repository revision: ead545824e511ab18d18b5223eab80e1f4fe3d64 Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 Recent messages: Guessed variable =E2=80=99python-indent=E2=80=99 (2) You should have a section marked ";;; Commentary:" The first line should be of the form: ";;; package --- Summary" You can run the command =E2=80=98eval-buffer=E2=80=99 with M-x ev-b RET Ran 1 tests, 0 results were as expected, 1 unexpected You can run the command =E2=80=98ert=E2=80=99 with M-x ert RET Ran 1 tests, 0 results were as expected, 1 unexpected mouse-2, RET: Reveal test result mouse-2, RET: Expand/collapse test result Configured using: 'configure --prefix=3D/home/gemini/src/emacs/out --with-modules --with-x-toolkit=3Dgtk3 --with-xft --config-cache' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ERT-View Minor modes in effect: ivy-mode: t global-flycheck-mode: t pyvenv-mode: t beacon-mode: t shell-dirtrack-mode: t imagex-auto-adjust-mode: t volatile-highlights-mode: t region-state-mode: t ws-butler-global-mode: t ws-butler-mode: t show-smartparens-global-mode: t smartparens-global-mode: t smartparens-global-strict-mode: t which-key-mode: t modalka-global-mode: t modalka-mode: t global-auto-revert-mode: t winner-mode: t savehist-mode: t override-global-mode: t cl-old-struct-compat-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (ert ewoc debug colir counsel swiper ivy flx delsel ivy-overlay ffap shadow sort mail-extr emacsbug flycheck sji-sunset-day-theme guess-style company-capf company-files mu4e desktop frameset mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-context mu4e-view mu4e-headers mu4e-compose mu4e-draft mu4e-actions rfc2368 smtpmail sendmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils doc-view jka-compr mu4e-lists mu4e-vars message rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mailabbrev mail-utils gmm-utils mailheader hl-line mu4e-meta company-tern dash-functional tern company-jedi jedi-core python-environment epc ctable concurrent deferred company-c-headers nix-mode yasnippet highlight-indentation flymake help-fns radix-tree elpy pyvenv elpy-django elpy-refactor smartparens-python python tramp-sh json map grep files-x slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations bridge slime-macrostep macrostep slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl slime-parse slime-company company pcase slime compile arc-mode archive-mode pp hyperspec browse-url nameless lisp-mnt ace-window avy beacon smex ido tramp tramp-compat tramp-loaddefs trampver shell parse-time image+ ledger-mode ledger-check ledger-schedule ledger-xact ledger-texi ledger-test ledger-sort ledger-report ledger-reconcile ledger-post ledger-occur ledger-init ledger-fontify ledger-state ledger-navigate ledger-fonts ledger-exec ledger-context ledger-complete ledger-commodities esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-groups eshell esh-module esh-mode esh-arg esh-util cus-edit cus-start cus-load ledger-regex rx deft wid-edit debbugs soap-client mm-decode mm-bodies mm-encode url-http tls gnutls url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm subr-x puny url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap warnings rng-xsd rng-dt rng-util xsd-regexp xml rainbow-mode color s ucs-normalize hydra lv column-enforce-mode etags xref project volatile-highlights region-state ws-butler smartparens-config smartparens thingatpt dash which-key modalka quail smart-mode-line-respectful-theme smart-mode-line rich-minority sji-sunset-night-theme color-theme-sji-sunset advice dired+ image-dired image-mode image-file dired-x dired-aux dired dired-loaddefs autorevert filenotify winner savehist cap-words superword subword org-clock org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs cl-extra help-mode use-package diminish bind-key easy-mmode finder-inf edmacro kmacro slime-autoloads info cl package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 638543 375725) (symbols 48 55060 42) (miscs 40 246 528) (strings 32 151320 46615) (string-bytes 1 4521307) (vectors 16 81725) (vector-slots 8 1291449 454954) (floats 8 404 736) (intervals 56 1261 463) (buffers 976 17))