From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#21816: elisp-mode-tests fails on a case-preserving filesystem Date: Thu, 5 Nov 2015 13:26:00 +0100 Message-ID: References: <86mvuv30i1.fsf@stephe-leake.org> <86pozpye8p.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c317e82b7b420523ca3df4 X-Trace: ger.gmane.org 1446726510 14886 80.91.229.3 (5 Nov 2015 12:28:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Nov 2015 12:28:30 +0000 (UTC) Cc: 21816@debbugs.gnu.org To: Stephen Leake Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 05 13:28:18 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZuJeL-0003Ic-Ux for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Nov 2015 13:28:18 +0100 Original-Received: from localhost ([::1]:60213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuJeG-0007KY-Ax for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Nov 2015 07:28:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuJeB-0007KJ-EI for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2015 07:28:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuJe6-0006ni-87 for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2015 07:28:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuJe6-0006na-5A for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2015 07:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZuJe5-0000ZK-RO for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2015 07:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Nov 2015 12:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21816 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21816-submit@debbugs.gnu.org id=B21816.14467264222113 (code B ref 21816); Thu, 05 Nov 2015 12:28:01 +0000 Original-Received: (at 21816) by debbugs.gnu.org; 5 Nov 2015 12:27:02 +0000 Original-Received: from localhost ([127.0.0.1]:54227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZuJd7-0000Xn-8e for submit@debbugs.gnu.org; Thu, 05 Nov 2015 07:27:01 -0500 Original-Received: from mail-lb0-f177.google.com ([209.85.217.177]:33897) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZuJcm-0000XH-Vf for 21816@debbugs.gnu.org; Thu, 05 Nov 2015 07:26:59 -0500 Original-Received: by lbbwb3 with SMTP id wb3so34087445lbb.1 for <21816@debbugs.gnu.org>; Thu, 05 Nov 2015 04:26:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=2a+/aylFMmU/sdRd8TX5YCixbCkDeHYWYJ9gNzEStDA=; b=S/V/nXcTbN/vCDP7MX/hiq6e75V/pEyj1gBmut90ouoip/hdaavveTPT+CyPeO/1BM U37lPw6urEJipze+CAWVRx1HyudcOvkpTHcyTMgTGTSPwmSTbnGKjBtp7OLbxseFrQLS o1+w0iqsvTKobDloqVi2u9WSQE+k06c6mlcQMliCjza3XJqLuuPN1PndLiKO7zl7PHw0 o7cPWzwXEHWG6QmUyYoI5C+uxdVAcLWgLh9XgR/Gk3cyh3VuxECCs67jERagnBI2aAu1 d4dZtjTGW1odaqXLt6KNJMIvEElH4oM7WCxbFa8K3Ct3iBXpNxw+tC5/gy6wzOqryStN taug== X-Received: by 10.112.234.163 with SMTP id uf3mr3739677lbc.15.1446726400177; Thu, 05 Nov 2015 04:26:40 -0800 (PST) Original-Received: by 10.25.217.132 with HTTP; Thu, 5 Nov 2015 04:26:00 -0800 (PST) In-Reply-To: <86pozpye8p.fsf@stephe-leake.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108475 Archived-At: --001a11c317e82b7b420523ca3df4 Content-Type: text/plain; charset=UTF-8 On Wed, Nov 4, 2015 at 4:29 PM, Stephen Leake < stephen_leake@stephe-leake.org> wrote: > If the policy is that `load-path' may contain directory names that are > different from the disk name, then taking advantage of that should not > produce warnings. > > But that discussion should move to a separate bug/subject. For this specific test file, I could fix the problem with this patch, if you and Dmitry are OK with it. diff --git i/test/automated/elisp-mode-tests.el w/test/automated/elisp-mode-tests.el index 1085b54..38c0b3b 100644 --- i/test/automated/elisp-mode-tests.el +++ w/test/automated/elisp-mode-tests.el @@ -209,6 +209,7 @@ xref-elisp-deftest (debug (symbolp "name"))) `(ert-deftest ,(intern (concat "xref-elisp-test-" (symbol-name name))) () - (xref-elisp-test-run ,computed-xrefs ,expected-xrefs) - )) + (let ((find-file-suppress-same-file-warnings t)) + (xref-elisp-test-run ,computed-xrefs ,expected-xrefs) + ))) ;; When tests are run from the Makefile, 'default-directory' is $HOME, --001a11c317e82b7b420523ca3df4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Wed, Nov 4, 2015 at 4:29 PM, Stephen Leake <stephen_leake@= stephe-leake.org> wrote:

> If the policy is that `loa= d-path' may contain directory names that are
> different from the= disk name, then taking advantage of that should not
> produce warnin= gs.
>
> But that discussion should move to a separate bug/subje= ct.

For this specific test file, I could fix the problem = with this patch, if you and Dmitry are OK with it.

diff --git i/test/automated/elisp-mode-tests.el w/test/automated/elis= p-mode-tests.el
index 1085b54..38c0b3b 100644
--- i/tes= t/automated/elisp-mode-tests.el
+++ w/test/automated/elisp-mode-t= ests.el
@@ -209,6 +209,7 @@ xref-elisp-deftest
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (debug (symbolp "name")))
=C2=A0 =C2=A0`(ert-deftest ,(intern (concat "xref-elisp-test-&qu= ot; (symbol-name name))) ()
- =C2=A0 =C2=A0 (xref-elisp-test-run = ,computed-xrefs ,expected-xrefs)
- =C2=A0 =C2=A0 ))
+ = =C2=A0 =C2=A0 (let ((find-file-suppress-same-file-warnings t))
+ = =C2=A0 =C2=A0 =C2=A0 (xref-elisp-test-run ,computed-xrefs ,expected-xrefs)<= /div>
+ =C2=A0 =C2=A0 =C2=A0 )))
=C2=A0
=C2=A0;; Wh= en tests are run from the Makefile, 'default-directory' is $HOME,



--001a11c317e82b7b420523ca3df4--