repo.or.cz
/
diffutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
doc: rewrite the "Unusual File Names" section
[diffutils.git]
/
tests
/
ifdef
blob
d3b05ddd75a2a549e5c934e90fbbac0537d403d0
1
#!/bin/sh
2
# --ifdef
3
4
# Bug reported by Robert Webb in <http://bugs.gnu.org/61193>.
5
6
.
"
${srcdir=.}
/init.sh"
;
path_prepend_ ..
/
src
7
8
fail
=
0
9
10
cat
<<'EOF' >a
11
1
12
2
13
3
14
4
15
5
16
EOF
17
18
cat
<<'EOF' >b
19
1
20
4
21
5
22
EOF
23
24
cat
<<'EOF' >exp
25
1
26
#ifndef ZZZ
27
2
28
3
29
#endif /* ! ZZZ */
30
4
31
5
32
EOF
33
34
returns_
1
diff
-D
ZZZ a b
>
out
2
>
err || fail
=
1
35
compare exp out || fail
=
1
36
37
Exit
$fail