Commit Graph

4 Commits

Author SHA1 Message Date
rillig 0fbf3fce65 tests/make: replace or document .error in tests
The text 'Missing argument for ".error"' in an .exp file may be a hint
for an accidentally broken test, so eliminate them as far as possible.
2024-05-31 07:13:12 +00:00
rillig 73d0a5078e tests/make: force line-based diagnostics to be listed in the tests
This way, contradictions between the intended output and the actual
output are closer together and have a better chance of being spotted.
2023-06-01 20:56:35 +00:00
rillig a7d1ba3ffa make: add more details to debug logging of .for loops 2023-06-01 09:02:14 +00:00
rillig 6b107a132e tests/make: document and demonstrate .for i containing .if empty(i)
PR bin/43821 describes the inconsistency that in a '.for i' loop, the
condition '.if ${i:M*.c}' works since 2009 while the seemingly
equivalent condition '.if !empty(i:M*.c)' does not access the variable
'i' from the .for loop but instead the global 'i'.

Resolving this situation in a backwards-compatible and non-surprising
way is hard, as make has grown several features during the last 20 years
that interact in various edge cases.  For now, document the most obvious
pitfalls.
2022-05-23 22:33:56 +00:00