diff options
Diffstat (limited to 'tests/run-addr2line-test.sh')
| -rwxr-xr-x | tests/run-addr2line-test.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/run-addr2line-test.sh b/tests/run-addr2line-test.sh index 1079c3e3..0dae42d3 100755 --- a/tests/run-addr2line-test.sh +++ b/tests/run-addr2line-test.sh @@ -56,7 +56,7 @@ EOF echo "# Everything from stdin (with newlines)." cat stdin.nl | testrun ${abs_top_builddir}/src/addr2line -f -e testfile > stdin.nl.out || exit 1 -cmp good.out stdin.nl.out || exit 1 +diff --strip-trailing-cr good.out stdin.nl.out || exit 1 cat > foo.out <<\EOF foo @@ -65,11 +65,11 @@ EOF echo "# stdin without newline address, just EOF." echo -n "0x08048468" | testrun ${abs_top_builddir}/src/addr2line -f -e testfile > stdin.nonl.out || exit 1 -cmp foo.out stdin.nonl.out || exit 1 +diff --strip-trailing-cr foo.out stdin.nonl.out || exit 1 echo "# stdin without newline symbol, just EOF." echo -n "foo" | testrun ${abs_top_builddir}/src/addr2line -f -e testfile > stdin.nl.out || exit 1 -cmp foo.out stdin.nonl.out || exit 1 +diff --strip-trailing-cr foo.out stdin.nonl.out || exit 1 tempfiles good.addr.out @@ -105,7 +105,7 @@ cat good.addr.out | testrun_compare ${abs_top_builddir}/src/addr2line -a -f -e t echo "# Everything from stdin (with newlines) with addresses." cat stdin.nl | testrun ${abs_top_builddir}/src/addr2line -a -f -e testfile > stdin.nl.out || exit 1 -cmp good.addr.out stdin.nl.out || exit 1 +diff --strip-trailing-cr good.addr.out stdin.nl.out || exit 1 echo "# Pretty with functions and addresses." testrun_compare ${abs_top_builddir}/src/addr2line --pretty -a -f -e testfile 0x08048468 0x0804845c << EOF |
