doc: rewrite the "Unusual File Names" section
[diffutils.git] / tests / ifdef
blobd3b05ddd75a2a549e5c934e90fbbac0537d403d0
1 #!/bin/sh
2 # --ifdef
4 # Bug reported by Robert Webb in <http://bugs.gnu.org/61193>.
6 . "${srcdir=.}/init.sh"; path_prepend_ ../src
8 fail=0
10 cat <<'EOF' >a
16 EOF
18 cat <<'EOF' >b
22 EOF
24 cat <<'EOF' >exp
26 #ifndef ZZZ
29 #endif /* ! ZZZ */
32 EOF
34 returns_ 1 diff -D ZZZ a b >out 2>err || fail=1
35 compare exp out || fail=1
37 Exit $fail