summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test-parse-duration.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-parse-duration.sh b/tests/test-parse-duration.sh
index e8be5ecb7e..cf45913261 100755
--- a/tests/test-parse-duration.sh
+++ b/tests/test-parse-duration.sh
@@ -60,7 +60,8 @@ cat > "${tmpf}" <<- _EOF_
exec 3< "${tmpf}"
while read line <&3
do
- v=`${CHECKER} ${exe} "${line}"` || { ls -l "${tmpf}"; die "Failed: ${exe} '${line}'"; }
+ v=`${CHECKER} ${exe} "${line}" | LC_ALL=C tr -d '\r'` \
+ || { ls -l "${tmpf}"; die "Failed: ${exe} '${line}'"; }
test $v -eq 38898367 || die $v is not 38898367
done
exec 3>&-