aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-10-20 14:41:18 +0000
committerJustus Winter <[email protected]>2016-10-20 15:01:23 +0000
commitbf37916a23bd0929fc4a5f28c9a41f43c5a473f6 (patch)
tree374acf58d463370ba847c9eb2a808a07683c7541
parenttests: Create and remove socket directories. (diff)
downloadgnupg-bf37916a23bd0929fc4a5f28c9a41f43c5a473f6.tar.gz
gnupg-bf37916a23bd0929fc4a5f28c9a41f43c5a473f6.zip
tests,w32: Cope with Windows line endings.
* tests/openpgp/issue2015.scm: Rstrip line before comparison. Signed-off-by: Justus Winter <[email protected]>
-rwxr-xr-xtests/openpgp/issue2015.scm3
1 files changed, 2 insertions, 1 deletions
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)))