unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Ken Brown <kbrown@cornell.edu>
Cc: 20117@debbugs.gnu.org
Subject: bug#20117: 25.0.50; Tramp tests failing on Cygwin
Date: Mon, 16 Mar 2015 19:48:02 +0100	[thread overview]
Message-ID: <87mw3c93tp.fsf@gmx.de> (raw)
In-Reply-To: <5506F003.1070201@cornell.edu> (Ken Brown's message of "Mon, 16 Mar 2015 11:00:19 -0400")

Ken Brown <kbrown@cornell.edu> writes:

> Several Tramp tests have recently started failing on Cygwin, the first
> being tramp-test19-directory-files-and-attributes.  The test aborts
> after the failure:
>
> Test tramp-test19-directory-files-and-attributes aborted with non-local exit
>   ABORTED  20/35  tramp-test19-directory-files-and-attributes

All tests in tramp-tests.el can be instrumented like this:

--8<---------------cut here---------------start------------->8---
*** /home/albinus/src/emacs/test/automated/tramp-tests.el.~master~	2015-03-16 19:42:03.629467429 +0100
--- /home/albinus/src/emacs/test/automated/tramp-tests.el	2015-03-16 17:41:30.112292199 +0100
***************
*** 1024,1029 ****
--- 1024,1030 ----
    "Check `directory-files-and-attributes'."
    (skip-unless (tramp--test-enabled))
  
+   (tramp--instrument-test-case 10
    ;; `directory-files-and-attributes' contains also values for "../".
    ;; Ensure that this doesn't change during tests, for
    ;; example due to handling temporary files.
***************
*** 1059,1065 ****
  	       (equal (file-attributes (car elt)) (cdr elt)))))
  	  (setq attr (directory-files-and-attributes tmp-name2 nil "^b"))
  	  (should (equal (mapcar 'car attr) '("bar" "boz"))))
!       (ignore-errors (delete-directory tmp-name1 'recursive)))))
  
  (ert-deftest tramp-test20-file-modes ()
    "Check `file-modes'.
--- 1060,1066 ----
  	       (equal (file-attributes (car elt)) (cdr elt)))))
  	  (setq attr (directory-files-and-attributes tmp-name2 nil "^b"))
  	  (should (equal (mapcar 'car attr) '("bar" "boz"))))
!       (ignore-errors (delete-directory tmp-name1 'recursive))))))
  
  (ert-deftest tramp-test20-file-modes ()
    "Check `file-modes'.
--8<---------------cut here---------------end--------------->8---

There will be a lot of traces in the test's *Messages* buffer. If you
run the Tramp tests interactively, go with the cursor to the failed test
and type "m". In batchmode, it shall be dumped.

> Ken

Best regards, Michael.





  parent reply	other threads:[~2015-03-16 18:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-16 15:00 bug#20117: 25.0.50; Tramp tests failing on Cygwin Ken Brown
2015-03-16 18:16 ` Achim Gratz
2015-03-16 19:00   ` Michael Albinus
2015-03-16 20:36     ` Achim Gratz
2015-03-17 19:04     ` Achim Gratz
2015-03-17 19:20       ` Michael Albinus
2015-03-16 18:48 ` Michael Albinus [this message]
2015-03-16 20:57   ` Ken Brown
2015-03-17 18:04     ` Ken Brown
2015-03-17 19:16       ` Michael Albinus
2015-03-17 21:44         ` Ken Brown
2015-03-18 12:37           ` Michael Albinus
2015-03-18 17:26             ` Ken Brown
2015-03-18 19:34               ` Michael Albinus

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=87mw3c93tp.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=20117@debbugs.gnu.org \
    --cc=kbrown@cornell.edu \
    /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).