]> granicus.if.org Git - strace/commitdiff
tests: use unified diff in order to improve test log readability
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 2 Jul 2017 18:03:09 +0000 (21:03 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 3 Jul 2017 15:14:54 +0000 (15:14 +0000)
* tests/init.sh (match_diff): Add -u option to the diff invocation.

tests/init.sh

index 28447654ce75ffc9fd0843a1f180d9dde8b1a080..013a33d920496b69b02c5f4a2058b8ae5f49dd81 100644 (file)
@@ -169,7 +169,7 @@ match_diff()
 
        check_prog diff
 
-       diff -- "$expected" "$output" ||
+       diff -u -- "$expected" "$output" ||
                fail_ "$error"
 }