This is simpler and should take care of any problems with mixed
line ending styles.

Signed-off-by: Mans Rullgard <[email protected]>
---
 tests/fate-run.sh |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index e5d52e5..a933fa1 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -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(){
-- 
1.7.10

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to