From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Question about test failure on Hydra Date: Sun, 30 Jul 2017 17:50:38 +0200 Message-ID: <87efsxexf5.fsf@rosalinde> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1501429890 11345 195.159.176.226 (30 Jul 2017 15:51:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 30 Jul 2017 15:51:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 30 17:51:24 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dbqUw-0002D7-54 for ged-emacs-devel@m.gmane.org; Sun, 30 Jul 2017 17:51:18 +0200 Original-Received: from localhost ([::1]:55688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbqV2-0007Pv-5n for ged-emacs-devel@m.gmane.org; Sun, 30 Jul 2017 11:51:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbqUQ-0007Pq-VO for emacs-devel@gnu.org; Sun, 30 Jul 2017 11:50:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dbqUM-0005St-2h for emacs-devel@gnu.org; Sun, 30 Jul 2017 11:50:46 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:64506) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dbqUL-0005Rr-I3 for emacs-devel@gnu.org; Sun, 30 Jul 2017 11:50:41 -0400 Original-Received: from rosalinde ([83.135.31.86]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MCcvy-1dSX643Afa-009Oct for ; Sun, 30 Jul 2017 17:50:38 +0200 X-Provags-ID: V03:K0:imejLq4GVRxzMNm4BuPcMZDgOy26GUl224n+c5fQq4901tMug3f xWQDPqxEMIWAa+xaqTanSBcJelwK24lSDbjjRV9XUVPGJaGtK7PkClLVgXx75Ryxl3847wq QPmeksnpxQ31aVRFkoj728xccPFCUoDq4Fr97rhcAgbkw3WZO7Pm06D17ewSRysL9lO8kFT sW4ZGmnbTLRfGNXG+DKvQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:UifmT1QKlCM=:ie7KxF2OuHeuQD5JBzAVn5 DnO9ipGPOQfrh5dTU5+aB5NNq0dpuJZL3RaFo2OWqz6FPaPwRUAqE+mzncWgTBVcYH+LZ1b1h vuxPG0qFH+8bYXkH6B3t+V4K/kMj+VL/SgelWe3CY+2i18QCMqLQ8KhQSd4Gf1xmGnw7dnEFv sfU8GwftFfS1vxdlgFtxAaHBnf6vzXn9O/kIZtaP8nHk4kdVEjU5pvrtc/az8mMhIQL6ouP4x 0Cy4RMrIbtjJItIFuAXSQPjNvLaHPYgocroM+TdA8AMvjMTUilbxPzxVlWRRuSb8Ni8NUHUnl KJyr31+1oW4vIulT0XqO8FsKwlBkzXKRqSValu5JgKRQTOqd+wv/Jj59nMUGhI7KBn+N/+p1X ftVUleDSrHArW4nUmtn92x/ph/amGURkZoGP9eDoSLTOsx1LfryMUxbraAMZVCY7P2UU3+k02 Fj2XT+hOhHRa0K7iShg3GcaaJIy5nzQ3RqVYFuuuHQuxLpz0xMBzek8bueUqhlnQrsxWJ6vXn utjcv8qRE+JeDVrlU9I/6mHBdZI7apa9taH5rN35xhg+/DK9n87Z+4dIVcsklMQl68yBXyG3e 1Z/Wcjstyp+txNYnUaUESZmVancj7MYNRYLIWCH0D7JmAYVjq1uD2Wwqd5IchoB2QoJqV/lZr GvSLs91xrJ+lnOSg/M6UbUKO86fZMSd0NLvoj1S3Y6nh7uPuUZ1jnGkXytwRs+B0MRLwyfW/A vj3AmrlMD/hIBEgqxSF1SxEvOy0Nu/8BGhv3pG6XDBr9lXG6CokdsqqO1dYAnrnmcW2ej6sK X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217162 Archived-At: Part of the Dired tests for bug#27243 continues to fail intermittently on Hydra and I see in the logfiles why it fails, but I don't understand how the trigger for the failure arises. Here's the test code (for the first of the bug cases; the second case has almost the same code and fails in the same way) up to the point of failure (the should sexp): (ert-deftest dired-test-bug27243-01 () "Test for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27243#5 ." (let ((test-dir (make-temp-file "test-dir-" t)) (dired-auto-revert-buffer t) buffers) (with-current-buffer (find-file-noselect test-dir) (make-directory "test-subdir")) (push (dired test-dir) buffers) (unwind-protect (let ((buf (current-buffer)) (pt1 (point)) (test-file (concat (file-name-as-directory "test-subdir") "test-file"))) (write-region "Test" nil test-file nil 'silent nil 'excl) ;; Sanity check: point should now be on the subdirectory. (should (equal (dired-file-name-at-point) (concat (file-name-as-directory test-dir) (file-name-as-directory "test-subdir")))) When it fails, Hydra show dired-file-name-at-point returning e.g. this (it's a temporary directory so the name is different on each test run): "/build/test-dir-26691mMc/../" while the concat sexp it's being compared with returns (e.g.) this: "/build/test-dir-26691mMc/test-subdir/" IIUC dired-file-name-at-point can only return the above result if point is on the ".." entry in Dired. But the sexp (dired test-dir) should (and in all my test runs does) put point on the first "nontrivial" file (i.e. it skips "." and ".."). I don't see how the above code can lead to the failure Hydra reports. And again, it doesn't always fail in Hydra. Does anyone have any idea what's going on here and what to do about it? Steve Berman