Repository navigation
Fix parsing of MINITEST value in minutes - #544
Conversation
|
The fix: trimming value before parsing. |
|
Fine. Merging it in. |
|
So test failed. Will check and fix tomorrow. |
|
There is a ongoing migration to Ubuntu 26 and this failed job ran on it. In my repo it was today still Ubuntu 24 and it was OK. There must be some change to astyle in 26. |
|
Yes, newer astyle versions differs in indentation of some code snippets. |
|
Astyle gets fooled when more than one struct member gets assigned per line. gets converted into So either wrap by INDENT-OFF INDENT-ON or have .char_p and .size assignment on two separate lines. Btw, the problem seems to be fixed in newer astyle versions. |
|
OK, I see. It looks like only two places in parse_logcfg.c are affected. I’ll submit a PR to fix them. |
putting struct member definitions on separate lines Fixes 'astyle' prblom from PR #544
In the previous PR #540, I missed that trailing newline characters aren't stripped from the argument. As a result, the MIN suffix isn't removed correctly, causing a parsing error.
First adding trailing NL to
test_minitest_10minto reproduce the issue.