osx: Test 172 (decrypt an encrypted syntax file) failed in regression
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 29 Nov 2015 15:45:53 +0000 (16:45 +0100)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 29 Nov 2015 15:57:32 +0000 (16:57 +0100)
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

index 241e4e59bb6206aa181c4037722cbdb0c55757a5..15a5ce219e8a41c7b8a7fc676b94f86a068d5117 100644 (file)
@@ -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/\r//' 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.