Commit 0ff0af73 authored by Mans Rullgard's avatar Mans Rullgard

fate: use diff -b in oneline comparison

This is simpler and should take care of any problems with mixed
line ending styles.
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent d89eca50
......@@ -61,9 +61,7 @@ stddev(){
}
oneline(){
val=$(cat "$2")
test x"$val" = x"$1" || { r=$?; printf -- '-%s\n+%s\n' "$ref" "$val"; }
return ${r:-0}
printf '%s\n' "$1" | diff -u -b - "$2"
}
run(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment