Debian Codegraph @

tests/nul2/run-test

raw
1 #!/bin/sh
2
3 # This is a filterdiff(1) testcase.
4 # Test: Handle embedded nul characters (context format).
5
6
7 . ${top_srcdir-.}/tests/common.sh
8
9 echo -e "abc\0" > file1
10 echo abc > file2
11
12 ${DIFF} -ac file1 file2 > diff
13 ${FILTERDIFF} diff 2>errors >filtered || exit 1
14 [ -s errors ] && exit 1
15
16 cmp diff filtered || exit 1