{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rust-mode/issues/19","labels_url":"https://api.github.com/repos/rust-lang/rust-mode/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust-mode/issues/19/comments","events_url":"https://api.github.com/repos/rust-lang/rust-mode/issues/19/events","html_url":"https://github.com/rust-lang/rust-mode/issues/19","id":56748625,"number":19,"title":"ert has two failures out-of-box on OS X, GNU Emacs 24.3.92.1 ","user":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-05T23:49:12Z","updated_at":"2015-02-05T23:49:12Z","closed_at":null,"body":"```\r\n% /Applications/Emacs.app/Contents/MacOS/Emacs -batch -l rust-mode.el -l rust-mode-tests.el -f ert-run-tests-batch-and-exit\r\nWarning: arch-dependent data dir `/Users/build/workspace/Emacs-Multi-Build/label/mavericks/emacs-source/nextstep/Emacs.app/Contents/MacOS/libexec/': No such file or directory\r\nRunning 63 tests (2015-02-06 00:47:59+0100)\r\nTest auto-fill-multi-line-doc-comment backtrace:\r\n  (if (unwind-protect (setq value-72102 (apply fn-72100 args-72101)) (\r\n  (let (form-description-72104) (if (unwind-protect (setq value-72102 \r\n  (let ((value-72102 (quote ert-form-evaluation-aborted-72103))) (let \r\n  (let ((fn-72100 (function rust-compare-code-after-manip)) (args-7210\r\n  (progn (rust-mode) (insert original) (goto-char point-pos) (funcall \r\n  (unwind-protect (progn (rust-mode) (insert original) (goto-char poin\r\n  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn\r\n  (let ((temp-buffer (generate-new-buffer \" *temp*\"))) (save-current-b\r\n  rust-test-manip-code(\"/**\\n *\\n */\" 8 (lambda nil (unwind-protect (p\r\n  test-auto-fill(\"/**\\n *\\n */\" 8 \"This is a very very very very very \r\n  (lambda nil (test-auto-fill \"/**\\n *\\n */\" 8 \"This is a very very ve\r\n  #[0 \"\\306\\307!r\\211q\\210\\310\\311\\312\\313\\314\\315!\\316\\\"\\317\\320%DC\r\n  funcall(#[0 \"\\306\\307!r\\211q\\210\\310\\311\\312\\313\\314\\315!\\316\\\"\\31\r\n  ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc\r\n  #[0 \"r\\304 q\\210\\305 )\\306\\307\\310\\311\\312\\313!\\314\\\"\\315\\316%DC\\2\r\n  funcall(#[0 \"r\\304 q\\210\\305 )\\306\\307\\310\\311\\312\\313!\\314\\\"\\315\\\r\n  ert-run-test([cl-struct-ert-test auto-fill-multi-line-doc-comment ni\r\n  ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test a\r\n  ert-run-tests(t #[385 \"\\306\\307\\\"\\203D\\211\\211G\\310U\\203\\211@\\20\r\n  ert-run-tests-batch(nil)\r\n  ert-run-tests-batch-and-exit()\r\n  command-line-1((\"-l\" \"rust-mode.el\" \"-l\" \"rust-mode-tests.el\" \"-f\" \"\r\n  command-line()\r\n  normal-top-level()\r\nTest auto-fill-multi-line-doc-comment condition:\r\n    (ert-test-failed\r\n     ((should\r\n       (rust-compare-code-after-manip original point-pos manip-func expected\r\n\t\t\t\t      (buffer-string)))\r\n      :form\r\n      (rust-compare-code-after-manip \"/**\\n *\\n */\" 8\r\n\t\t\t\t     (lambda nil\r\n\t\t\t\t       (unwind-protect ... ...))\r\n\t\t\t\t     \"/**\\n * This is a very very very very\\n * very very very long string\\n */\" \"/**\\n *\\nThis is a very very very very\\nvery very very long string */\")\r\n      :value nil :explanation\r\n      (\"Rust code was manipulated wrong after:\"\r\n       (insert \"/**\\n *\\n */\")\r\n       (goto-char 8)\r\n       expected\r\n       (insert \"/**\\n * This is a very very very very\\n * very very very long string\\n */\")\r\n       got\r\n       (insert \"/**\\n *\\nThis is a very very very very\\nvery very very long string */\")\r\n       (first-difference-at\r\n\t(goto-char 7)\r\n\texpected \" \" got \"\\n\"))))\r\n   FAILED   1/63  auto-fill-multi-line-doc-comment\r\n   passed   2/63  auto-fill-multi-line-prefixless\r\n   passed   3/63  auto-fill-single-line-doc-comment\r\n   passed   4/63  fill-paragraph-multi-line-style-inner-doc-comment\r\n   passed   5/63  fill-paragraph-multi-paragraph-multi-line-style-doc-comment\r\n   passed   6/63  fill-paragraph-multi-paragraph-single-line-style-doc-comment\r\n   passed   7/63  fill-paragraph-multi-paragraph-single-line-style-indented\r\n   passed   8/63  fill-paragraph-prefixless-multi-line-doc-comment\r\n   passed   9/63  fill-paragraph-single-line-style-code-before-and-after\r\n   passed  10/63  fill-paragraph-single-line-style-inner-doc-comment\r\n   passed  11/63  fill-paragraph-single-line-style-with-code-after\r\n   passed  12/63  fill-paragraph-single-line-style-with-code-before\r\n   passed  13/63  fill-paragraph-top-level-multi-line-style-doc-comment-first-line\r\n   passed  14/63  fill-paragraph-top-level-multi-line-style-doc-comment-second-line\r\n   passed  15/63  fill-paragraph-with-no-space-after-star-prefix\r\n   passed  16/63  font-lock-attribute-around-comment\r\n   passed  17/63  font-lock-attribute-inner\r\n   passed  18/63  font-lock-attribute-inside-comment\r\n   passed  19/63  font-lock-attribute-inside-string\r\n   passed  20/63  font-lock-attribute-key-value\r\n   passed  21/63  font-lock-attribute-simple\r\nIndenting region...\r\nIndenting region...done\r\n   passed  22/63  indent-curly-braces-within-parens\r\nIndenting region...\r\nIndenting region...done\r\nTest indent-doc-comments backtrace:\r\n  (if (unwind-protect (setq value-72102 (apply fn-72100 args-72101)) (\r\n  (let (form-description-72104) (if (unwind-protect (setq value-72102 \r\n  (let ((value-72102 (quote ert-form-evaluation-aborted-72103))) (let \r\n  (let ((fn-72100 (function rust-compare-code-after-manip)) (args-7210\r\n  (progn (rust-mode) (insert original) (goto-char point-pos) (funcall \r\n  (unwind-protect (progn (rust-mode) (insert original) (goto-char poin\r\n  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn\r\n  (let ((temp-buffer (generate-new-buffer \" *temp*\"))) (save-current-b\r\n  rust-test-manip-code(\"      \\n      /**\\n      * This is a doc comme\r\n  (let ((deindented (replace-regexp-in-string \"^[[:blank:]]*\" \"      \"\r\n  test-indent(\"\\n/**\\n * This is a doc comment\\n *\\n */\\n\\n/// So is t\r\n  (lambda nil (test-indent \"\\n/**\\n * This is a doc comment\\n *\\n */\\n\r\n  #[0 \"\\306\\307!r\\211q\\210\\310\\311\\312\\313\\314\\315!\\316\\\"\\317\\320%DC\r\n  funcall(#[0 \"\\306\\307!r\\211q\\210\\310\\311\\312\\313\\314\\315!\\316\\\"\\31\r\n  ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc\r\n  #[0 \"r\\304 q\\210\\305 )\\306\\307\\310\\311\\312\\313!\\314\\\"\\315\\316%DC\\2\r\n  funcall(#[0 \"r\\304 q\\210\\305 )\\306\\307\\310\\311\\312\\313!\\314\\\"\\315\\\r\n  ert-run-test([cl-struct-ert-test indent-doc-comments nil (lambda nil\r\n  ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test a\r\n  ert-run-tests(t #[385 \"\\306\\307\\\"\\203D\\211\\211G\\310U\\203\\211@\\20\r\n  ert-run-tests-batch(nil)\r\n  ert-run-tests-batch-and-exit()\r\n  command-line-1((\"-l\" \"rust-mode.el\" \"-l\" \"rust-mode-tests.el\" \"-f\" \"\r\n  command-line()\r\n  normal-top-level()\r\nTest indent-doc-comments condition:\r\n    (ert-test-failed\r\n     ((should\r\n       (rust-compare-code-after-manip original point-pos manip-func expected\r\n\t\t\t\t      (buffer-string)))\r\n      :form\r\n      (rust-compare-code-after-manip \"      \\n      /**\\n      * This is a doc comment\\n      *\\n      */\\n      \\n      /// So is this\\n      \\n      fn foo() {\\n      /*!\\n      * this is a nested doc comment\\n      */\\n      \\n      //! And so is this\\n      }\" 1\r\n\t\t\t\t     (lambda nil\r\n\t\t\t\t       (indent-region 1 ...))\r\n\t\t\t\t     \"\\n/**\\n * This is a doc comment\\n *\\n */\\n\\n/// So is this\\n\\nfn foo() {\\n    /*!\\n     * this is a nested doc comment\\n     */\\n\\n    //! And so is this\\n}\" \"\\n/**\\n * This is a doc comment\\n *\\n */\\n\\n/// So is this\\n\\nfn foo() {\\n    /*!\\n     * this is a nested doc comment\\n     */\\n    \\n    //! And so is this\\n}\")\r\n      :value nil :explanation\r\n      (\"Rust code was manipulated wrong after:\"\r\n       (insert \"      \\n      /**\\n      * This is a doc comment\\n      *\\n      */\\n      \\n      /// So is this\\n      \\n      fn foo() {\\n      /*!\\n      * this is a nested doc comment\\n      */\\n      \\n      //! And so is this\\n      }\")\r\n       (goto-char 1)\r\n       expected\r\n       (insert \"\\n/**\\n * This is a doc comment\\n *\\n */\\n\\n/// So is this\\n\\nfn foo() {\\n    /*!\\n     * this is a nested doc comment\\n     */\\n\\n    //! And so is this\\n}\")\r\n       got\r\n       (insert \"\\n/**\\n * This is a doc comment\\n *\\n */\\n\\n/// So is this\\n\\nfn foo() {\\n    /*!\\n     * this is a nested doc comment\\n     */\\n    \\n    //! And so is this\\n}\")\r\n       (first-difference-at\r\n\t(goto-char 118)\r\n\texpected \"\\n\" got \" \"))))\r\n   FAILED  23/63  indent-doc-comments\r\nIndenting region...\r\nIndenting region...done\r\n   passed  24/63  indent-indented-match\r\nIndenting region...\r\nIndenting region...done\r\n   passed  25/63  indent-inside-braces\r\nMark set\r\nMark set\r\n   passed  26/63  indent-line-after-whitespace-motion\r\nMark set\r\nMark set\r\n   passed  27/63  indent-line-blank-line-indented-already-bol\r\nMark set\r\nMark set\r\n   passed  28/63  indent-line-blank-line-indented-already-middle\r\nMark set\r\nMark set\r\n   passed  29/63  indent-line-blank-line-motion\r\nMark set\r\nMark set\r\n   passed  30/63  indent-line-closing-brace-motion\r\nMark set\r\nMark set\r\n   passed  31/63  indent-line-middle-pull-motion\r\nMark set\r\nMark set\r\n   passed  32/63  indent-line-middle-push-motion\r\nMark set\r\nMark set\r\n   passed  33/63  indent-line-nonblank-line-indented-already-bol\r\nMark set\r\nMark set\r\n   passed  34/63  indent-line-nonblank-line-indented-already-middle\r\nIndenting region...\r\nIndenting region...done\r\n   passed  35/63  indent-match\r\nIndenting region...\r\nIndenting region...done\r\n   passed  36/63  indent-match-multiline-pattern\r\nIndenting region...\r\nIndenting region...done\r\n   passed  37/63  indent-multi-line-attrib\r\nIndenting region...\r\nIndenting region...done\r\n   passed  38/63  indent-multi-line-expr\r\nIndenting region...\r\nIndenting region...done\r\n   passed  39/63  indent-nested-fns\r\nIndenting region...\r\nIndenting region...done\r\n   passed  40/63  indent-nonmatch-or-expression\r\nIndenting region...\r\nIndenting region...done\r\n   passed  41/63  indent-params-align\r\nIndenting region...\r\nIndenting region...done\r\n   passed  42/63  indent-params-no-align\r\nIndenting region...\r\nIndenting region...done\r\n   passed  43/63  indent-square-bracket-alignment\r\nIndenting region...\r\nIndenting region...done\r\n   passed  44/63  indent-struct-fields-aligned\r\nIndenting region...\r\nIndenting region...done\r\n   passed  45/63  indent-top-level\r\n   passed  46/63  indent-weirdly-indented-block\r\nMark set\r\nMark set\r\n   passed  47/63  rust-beginning-of-defun-before-open-brace\r\nMark set\r\nMark set\r\n   passed  48/63  rust-beginning-of-defun-between-fns\r\nMark set\r\nMark set\r\n   passed  49/63  rust-beginning-of-defun-from-end\r\nMark set\r\nMark set\r\n   passed  50/63  rust-beginning-of-defun-from-middle-of-fn\r\nMark set\r\nMark set\r\n   passed  51/63  rust-beginning-of-defun-pub-fn\r\nMark set\r\nMark set\r\n   passed  52/63  rust-beginning-of-defun-with-arg\r\nMark set\r\nMark set\r\n   passed  53/63  rust-beginning-of-defun-with-negative-arg\r\nMark set\r\nMark set\r\n   passed  54/63  rust-end-of-defun-before-open-brace\r\nMark set\r\nMark set\r\n   passed  55/63  rust-end-of-defun-between-fns\r\nMark set\r\nMark set\r\n   passed  56/63  rust-end-of-defun-from-beg\r\nMark set\r\nMark set\r\n   passed  57/63  rust-end-of-defun-from-middle-of-fn\r\nMark set\r\nMark set\r\n   passed  58/63  rust-end-of-defun-with-arg\r\nMark set\r\nMark set\r\n   passed  59/63  rust-end-of-defun-with-negative-arg\r\nMark set\r\nMark set\r\nMark set\r\nMark set\r\nMark set\r\n   passed  60/63  rust-mark-defun-from-end\r\nMark set\r\nMark set\r\nMark set\r\nMark set\r\nMark set\r\n   passed  61/63  rust-mark-defun-from-middle-of-fn\r\nMark set\r\nMark set\r\nMark set\r\nMark set\r\nMark set\r\n   passed  62/63  rust-mark-defun-from-middle-of-struct\r\nMark set\r\nMark set\r\nMark set\r\nMark set\r\nMark set\r\n   passed  63/63  rust-mark-defun-start-of-defun\r\n\r\nRan 63 tests, 61 results as expected, 2 unexpected (2015-02-06 00:48:01+0100)\r\n\r\n2 unexpected results:\r\n   FAILED  auto-fill-multi-line-doc-comment\r\n   FAILED  indent-doc-comments\r\n\r\n\r\n```"}}