maint: import tests/init.sh from Gnulib during bootstrap
[cppi.git] / tests / stringify-2
blob6e414de6d69e53b6ca679799c4ba84a2f1a6bdea
1 #!/bin/sh
3 t=`basename $0`
5 cat > $t.I <<\EOF
6 #if FOO
7 # define foo(if) \\
8 #if x
9 #endif
10 EOF
12 > $t.EO
14 cat > $t.Ee <<\EOF
15 cppi: stringify-2.I: line 3: not properly indented
16 cppi: stringify-2.I: line 4: not properly indented
17 cppi: stringify-2.I: line 1: unterminated #if
18 EOF
20 redirect_stdin=no
21 options="-c"
22 expected_status=2
24 . $top_srcdir/tests/test-common