From 26abd623201f0fc5fb55c2314f695c22e1435dce Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Sun, 29 Nov 2015 16:45:53 +0100 Subject: [PATCH] osx: Test 172 (decrypt an encrypted syntax file) failed in regression Test 172 decrypts a file which produces some problematic CRLF characters. The characters are removed with sed to check vs. reference data, but the sed does not work the same way on osx as on linux. I changed this to tr which works on both systems. --- tests/data/encrypted-file.at | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/data/encrypted-file.at b/tests/data/encrypted-file.at index 241e4e59bb..15a5ce219e 100644 --- a/tests/data/encrypted-file.at +++ b/tests/data/encrypted-file.at @@ -32,7 +32,7 @@ AT_CHECK([pspp-convert $srcdir/data/test-encrypted.sps test.sps -p password]) # The sample file is not ideal: lines end in CRLF and its last line # lacks a new-line, so "sed" and "echo" make it easier to work with. -AT_CHECK([sed 's/ //' test.sps; echo], [0], [dnl +AT_CHECK([tr -d "\r" < test.sps; echo], [0], [dnl * Encoding: windows-1252. DATA LIST LIST /name (a25) quantity (f8). BEGIN DATA. -- 2.30.2