Home | History | Annotate | Download | only in indent

Lines Matching refs:indent

28 # Tests for error handling in indent.
30 indent=$(atf_config_get usr.bin.indent.test_indent /usr/bin/indent)
41 "$indent" "$@"
48 'indent: Command line: unknown option "-Z-unknown"' \
56 'indent: Command line: unknown option "-bacchus"' \
64 'indent: Command line: argument "x" to option "-ts" must be an integer' \
72 'indent: profile ./nonexistent: No such file or directory' \
80 'indent: cannot open file ./nonexistent' \
88 'indent: Command line: argument "-1" to option "-ts" must be between 1 and 80' \
96 'indent: Command line: argument "0" to option "-ts" must be between 1 and 80' \
104 'indent: Command line: argument "81" to option "-ts" must be between 1 and 80' \
113 'indent: Command line: argument "3000000000" to option "-ts" must be between 1 and 80' \
121 'indent: Command line: argument "0" to option "-i" must be between 1 and 80' \
129 'indent: Command line: argument "3garbage" to option "-i" must be an integer' \
137 'indent: Command line: argument "3garbage" to option "-cli" must be numeric' \
145 -e 'inline:indent: Command line: unknown option "-npro-garbage"\n' \
146 "$indent" -npro-garbage
153 -e 'inline:indent: Command line: unknown option "-stdio"\n' \
154 "$indent" -stdio
161 -e 'inline:indent: Command line: unknown option "--version-dump"\n' \
162 "$indent" --version-dump
172 printf '%s\n' "-$opt" > indent.pro
175 'indent: buffer overflow in indent.pro, starting with '\''-123456781'\''' \
183 'indent: Command line: option "-cli" requires an argument' \
187 'indent: Command line: option "-T" requires an argument' \
191 'indent: Command line: option "-U" requires an argument' \
203 "$indent" -st < comment.c
214 "$indent" -st < comment.c
225 "$indent" -st -di0 < char.c
236 "$indent" -st -di0 < string.c
247 # Due to the strange backup suffix '/subdir', indent tries to create
251 -e 'inline:indent: code.c/subdir: Not a directory\n' \
252 env SIMPLE_BACKUP_SUFFIX="/subdir" "$indent" code.c
263 -e 'inline:indent: ./nonexistent.c: No such file or directory\n' \
264 "$indent" ./nonexistent.c
273 -e 'inline:indent: input and output files must be different\n' \
274 "$indent" code.c code.c
283 "$indent" code.c ./code.c
295 'indent: subdir/nonexistent.c: No such file or directory' \
305 'indent: too many arguments: arg3.c' \
367 "$indent" code.c
387 "$indent" code.c
393 # Before 2023-05-11, indent crashed while
407 "$indent" code.c -st
424 # Indent tries hard to make the comment fit to the 34-character line
438 "$indent" -l34 code.c -st
453 "$indent" code.c
464 "$indent" code.c