Debian Codegraph @

tests/nul1/run-test

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