From bf37916a23bd0929fc4a5f28c9a41f43c5a473f6 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 20 Oct 2016 16:41:18 +0200 Subject: tests,w32: Cope with Windows line endings. * tests/openpgp/issue2015.scm: Rstrip line before comparison. Signed-off-by: Justus Winter --- tests/openpgp/issue2015.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/openpgp/issue2015.scm b/tests/openpgp/issue2015.scm index 536cb8f8a..e51ece465 100755 --- a/tests/openpgp/issue2015.scm +++ b/tests/openpgp/issue2015.scm @@ -25,5 +25,6 @@ (let ((response (call-popen `(,(tool 'gpg-connect-agent)) "GET_PASSPHRASE --no-ask some_id X X X"))) - (unless (string=? response "OK 736F6D655F70617373706872617365\n") + (unless (string=? (string-rtrim char-whitespace? response) + "OK 736F6D655F70617373706872617365") (error "Could not retrieve passphrase from cache:" response))) -- cgit v1.2.3