1 QA output created by 853
10 Firstly, there is the mumble and "fumble" ...
12 what about urk ? expect this to be \u\r\k not \e\e\k
28 ----------------------
35 Firstly, there is the mumble and "fumble" ...
37 what about urk ? expect this to be \u\r\k not \e\e\k
53 ----------------------
55 === expansion with -r ===
56 ----------------------
63 Firstly, there is the mumble ...
65 what about eek ? expect this to be \u\r\k not \e\e\k
81 ----------------------
86 <<macro mumble="mumble and "fumble""
90 Firstly, there is the mumble ...
94 <<increased obuf[] to 256 chars
95 what about urk ? expect this to be \u\r\k not \e\e\k
98 and what about urk ? expect this to be \u\r\k not \e\e\k
102 urk <percent>eek at start of line
105 <percent>eek at end of line urk
108 urk <percent>{eek} at start of line
111 <percent>{eek} at end of line urk
113 <<lines: in 14 out 16 (modified 6) substitutions: 6
114 Check lines in and out ...
117 ----------------------
119 === -D on command line cases ===
120 ----------------------
125 blah=blah=blah=... from .inc file
127 Firstly, there is the mumble and "fumble" ...
129 what about urk ? expect this to be \u\r\k not \e\e\k
133 blah=blah=blah=... from .in file
145 ----------------------
150 blah blah blah ... from .inc file
152 Firstly, there is the mumble and "fumble" ...
154 what about urk ? expect this to be \u\r\k not \e\e\k
158 blah blah blah ... from .in file
170 ----------------------
173 ----------------------
179 pmcpp: Error: End of input and no matching %endif for %ifdef or %ifndef at line 2
180 ----------------------
182 %macro value with embedded newline - bad
183 pmcpp: <stdin>[2]: %define multi 'one line
184 pmcpp: Error: Unterminated value string in %define
185 ----------------------
187 # exposed #else outside #if ... scope
189 pmcpp: <stdin>[3]: #else
190 pmcpp: Error: No matching #ifdef or #ifndef for #else
191 ----------------------
193 === macro name and corner-case expansion tests ===
194 ----------------------
197 What about urk? [expect urk]
198 ----------------------
200 <<macro long_macro_name_and_short_value="!"
202 <<macro x="^a very long macro value to be sure, to be sure$"
205 <<name="%{long_macro_name_and_short_value}"
207 <<increased obuf[] to 256 chars
208 <<name="%{long_macro_name_and_short_value}"
210 <<name="%{long_macro_name_and_short_value}"
215 some text %!!!% [expect %!!!%]
217 <<value="^a very long macro value to be sure, to be sure$"
219 <<value="^a very long macro value to be sure, to be sure$"
221 <<value="^a very long macro value to be sure, to be sure$"
222 [expect ^...$^...$^...$] ^a very long macro value to be sure, to be sure$^a very long macro value to be sure, to be sure$^a very long macro value to be sure, to be sure$
223 <<lines: in 4 out 5 (modified 2) substitutions: 6
224 ----------------------
226 <<macro Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch="LLanfair"
228 <<doubled ibuf[] to 512 chars
229 <<doubled ibuf[] to 1024 chars
233 <<name="Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch"
235 <<increased obuf[] to 1024 chars
261 <<name="Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch"
264 <<name="Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch"
279 <<name="Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch"
288 <<name="Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch"
298 The town of LLanfair is a village in Wales and is famous for being apparently the longest place name in the world. There are lots of web pages mentioning LLanfair. Locally LLanfair is just too much of a mouthful and so it is truncated from "LLanfair" to "Llanfair". With one more mention of LLanfair, I think this line will be long enough.
307 Phew that was a long input line ... 593 chars!
308 <<lines: in 3 out 4 (modified 1) substitutions: 5
309 ----------------------
311 === conditionals, bells and whistles ===
312 ----------------------
319 log mandatory on 1minute {
330 ----------------------
337 log mandatory on 1minute {
343 log mandatory on 15 sec {
348 ----------------------
351 ----------------------
357 <<lines: in 3 out 5 (modified 0) substitutions: 0
358 ----------------------
361 <<include "/var/lib/pcp/pmns/b"?
362 pmcpp: a[1]: #include <b>
363 pmcpp: Error: Cannot open file for #include
364 ----------------------
372 <<lines: in 3 out 5 (modified 0) substitutions: 0
373 ----------------------
378 <<include "./c-foobar"?
379 <<include "sub/c-foobar"?
380 <<include "sub/sub-sub/c-foobar"?
381 # 1 "sub/sub-sub/c-foobar"
387 <<lines: in 5 out 8 (modified 0) substitutions: 0
388 ----------------------
392 <<include "sub/c-foobar"?
399 <<lines: in 5 out 8 (modified 0) substitutions: 0
400 ----------------------
401 expect no diff lines ...
402 ----------------------