all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#33568: 27.0.50; Failing secrets tests on Cygwin
@ 2018-12-01 23:02 Ken Brown
  2018-12-02  9:17 ` Michael Albinus
  0 siblings, 1 reply; 6+ messages in thread
From: Ken Brown @ 2018-12-01 23:02 UTC (permalink / raw)
  To: 33568

[-- 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-12-12 18:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-01 23:02 bug#33568: 27.0.50; Failing secrets tests on Cygwin Ken Brown
2018-12-02  9:17 ` 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

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.