Fix date format tests when running under wine
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 2 Apr 2016 04:01:43 +0000 (06:01 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 2 Apr 2016 04:01:43 +0000 (06:01 +0200)
tests/data/data-out.at

index 6043d014b07dfd8375daafe36647cd471bfa42ea..2ff7a2646ddcc6db99401dc6c43e03d4447049dc 100644 (file)
@@ -14045,7 +14045,7 @@ print outfile='month-out.out'/x(month40).
 execute.
 ])
 AT_CHECK([pspp -O format=csv month-out.sps], [1], [stdout])
-AT_CHECK([[sed '/^$/d' stdout | sort | uniq -c | sed 's/^[     ]*//']], [0],
+AT_CHECK([[sed '/^ *\r*$/d' stdout | sort | uniq -c | sed 's/^[         ]*//']], [0],
 [dnl
 38 error: Month number 0.000000 is not between 1 and 12.
 38 error: Month number 0.500000 is not between 1 and 12.
@@ -14961,7 +14961,7 @@ end repeat.
 execute.
 ])
 AT_CHECK([pspp -O format=csv wkday-out.sps], [1], [stdout])
-AT_CHECK([[sed '/^$/d' stdout | sort | uniq -c | sed 's/^[     ]*//']], [0],
+AT_CHECK([[sed '/^ *\r*$/d' stdout | sort | uniq -c | sed 's/^[         ]*//']], [0],
 [dnl
 39 error: Weekday number 0.000000 is not between 1 and 7.
 39 error: Weekday number 0.500000 is not between 1 and 7.