unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: joaotavora@gmail.com (João Távora)
To: Glenn Morris <rgm@gnu.org>
Cc: 29187@debbugs.gnu.org, Dmitry Gutov <dgutov@yandex.ru>
Subject: bug#29187: flymake ruby and perl tests fail on rhel7.4
Date: Tue, 07 Nov 2017 15:57:29 +0000	[thread overview]
Message-ID: <877ev2ozdi.fsf@gmail.com> (raw)
In-Reply-To: <0tinemg9bc.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 06 Nov 2017 20:35:19 -0500")

Glenn Morris <rgm@gnu.org> writes:

> João Távora wrote:
>
>> Dmitry Gutov <dgutov@yandex.ru> writes:
> [...]
>>> It also fails here via 'make check' (with Ruby 1.9.3) but succeeds
>>> interactively.
>
> Same here.

This is bizarre, because I did manage to reproduce and fix, on a
separate Ubuntu machine I have access to, one of the errors that you
had, Glenn, and that was indeed due to the extra diagnostic line
produced by your perl.

But I don't get any differences between interactive and non-interactive
cases and I can't understand how your test run could possibly have
succeeded interactively since it produces that same extra line.

Dmitry, your case baffles me even more. Are you sure you get the exact
same output as Glenn?

Perhaps there's something strange and we might be dealing with different
problems. Let's perhaps first agree to run tests in a common
manner. Interactively:

   $ src/emacs -Q --eval "(setq load-prefer-newer t)" -l test/lisp/progmodes/flymake-tests.el --eval "(ert \"\")"

and non-interactively (make check also works, obviuosly)

   $ src/emacs -Q --eval "(setq load-prefer-newer t)" -l test/lisp/progmodes/flymake-tests.el --batch --eval "(ert-run-tests-batch-and-exit \"\")"

I get the same results in either case, no failures.

Now Glenn, can you try those 2 tests again after applying this patch to
flymake-tests.el? The first part should theoretically fix your perl
failure and the second part should help me understand if launching ruby
failed.

diff --git a/test/lisp/progmodes/flymake-tests.el b/test/lisp/progmodes/flymake-tests.el
index c60f910034..98c74624b5 100644
--- a/test/lisp/progmodes/flymake-tests.el
+++ b/test/lisp/progmodes/flymake-tests.el
@@ -114,13 +114,16 @@ flymake-tests--wait-for-backends
   (flymake-tests--with-flymake ("test.pl")
     (flymake-goto-next-error)
     (should (eq 'flymake-warning (face-at-point)))
-    (flymake-goto-next-error)
+    (goto-char (point-max))
+    (flymake-goto-prev-error)
     (should (eq 'flymake-error (face-at-point)))))
 
 (ert-deftest ruby-backend ()
   "Test the ruby backend"
   (skip-unless (executable-find "ruby"))
   (flymake-tests--with-flymake ("test.rb")
+    (if (memq 'ruby-flymake (flymake-disabled-backends))
+        (ert-fail "Something went wrong setting up ruby flymake"))
     (flymake-goto-next-error)
     (should (eq 'flymake-warning (face-at-point)))
     (flymake-goto-next-error)





  reply	other threads:[~2017-11-07 15:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-06 23:44 bug#29187: flymake ruby and perl tests fail on rhel7.4 Glenn Morris
2017-11-07  0:25 ` Dmitry Gutov
2017-11-07  0:45   ` João Távora
2017-11-07  1:35     ` Glenn Morris
2017-11-07 15:57       ` João Távora [this message]
2017-11-07 17:22         ` Dmitry Gutov
2017-11-07 19:02         ` Glenn Morris
2017-11-07 19:08           ` Glenn Morris
2017-11-07 22:58           ` João Távora
2017-11-08  1:42             ` Glenn Morris
2017-11-08 11:35               ` João Távora
2017-11-08 19:35                 ` Glenn Morris
2017-11-09 20:21                   ` João Távora
2017-11-07 10:21     ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877ev2ozdi.fsf@gmail.com \
    --to=joaotavora@gmail.com \
    --cc=29187@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).