all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: 33568@debbugs.gnu.org
Subject: bug#33568: 27.0.50; Failing secrets tests on Cygwin
Date: Sat, 1 Dec 2018 23:02:57 +0000	[thread overview]
Message-ID: <defe0179-c739-6134-cffe-b0d246d98c5f@cornell.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 550 bytes --]

Two of the secrets tests fail on Cygwin (at least in my normal working
environment) because there is no "Login" collection.  Not knowing
anything about this, I'm inclined to take the easy way out, as in the
attached patch.  Is there a better way of handling it?

Ken


In GNU Emacs 27.0.50 (build 6, x86_64-pc-cygwin, GTK+ Version 3.22.28)
  of 2018-12-01 built on moufang2
Repository revision: 070ef95c1007cb3d54e04bc337d9fb5463912cc1
Repository branch: master
Windowing system distributor 'The Cygwin/X Project', version 11.0.12002000

[-- Attachment #2: 0001-Fix-secrets-tests-on-Cygwin.patch --]
[-- Type: text/plain, Size: 1979 bytes --]

From 3a4e7bf9de834ef30aa2642ef2fc9875840201ed Mon Sep 17 00:00:00 2001
From: Ken Brown <kbrown@cornell.edu>
Date: Sat, 1 Dec 2018 17:54:59 -0500
Subject: [PATCH] Fix secrets tests on Cygwin

* test/lisp/net/secrets-tests.el (secrets-test02-collections):
(secrets-test03-items): Don't expect there to be a "Login"
collection on Cygwin.
---
 test/lisp/net/secrets-tests.el | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/test/lisp/net/secrets-tests.el b/test/lisp/net/secrets-tests.el
index de3ce731be..90728f081d 100644
--- a/test/lisp/net/secrets-tests.el
+++ b/test/lisp/net/secrets-tests.el
@@ -91,9 +91,11 @@ secrets--test-delete-all-session-items
       (progn
 	(should (secrets-open-session))
 
-	;; There must be at least the collections "Login" and "session".
-	(should (or (member "Login" (secrets-list-collections))
-                    (member "login" (secrets-list-collections))))
+	;; There must be at least the collections "Login" and "session"
+        ;; except on Cygwin, wehre there is no "Login" collection.
+        (when (not (eq system-type 'cygwin))
+	  (should (or (member "Login" (secrets-list-collections))
+                      (member "login" (secrets-list-collections)))))
 	(should (member "session" (secrets-list-collections)))
 
 	;; Create a random collection.  This asks for a password
@@ -160,9 +162,10 @@ secrets--test-delete-all-session-items
 
 	;; There shall be no items in the "session" collection.
 	(should-not (secrets-list-items "session"))
-	;; There shall be items in the "Login" collection.
-	(should (or (secrets-list-items "Login")
-                    (secrets-list-items "login")))
+	;; There shall be items in the "Login" collection except on Cygwin.
+	(when (not (eq system-type 'cygwin))
+	  (should (or (secrets-list-items "Login")
+		      (secrets-list-items "login"))))
 
 	;; Create a new item.
 	(should (setq item-path (secrets-create-item "session" "foo" "secret")))
-- 
2.17.0


             reply	other threads:[~2018-12-01 23:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-01 23:02 Ken Brown [this message]
2018-12-02  9:17 ` bug#33568: 27.0.50; Failing secrets tests on Cygwin Michael Albinus
2018-12-02 12:23   ` Ken Brown
2018-12-02 12:36     ` Michael Albinus
2018-12-12  9:59     ` Michael Albinus
2018-12-12 18:28       ` Ken Brown

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

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

  git send-email \
    --in-reply-to=defe0179-c739-6134-cffe-b0d246d98c5f@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=33568@debbugs.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.