Verified Commit 4e997d1b authored by
initrd/tests: cleanup redundant code in "test-cmdline-reader.c"
Add _parse(), _parse_cons() and _parse_con() helper macros. These already perform assertions that are common in those cases, and thus reduce a lot of boiler plate code. Also, _parse_cons() is exactly about parsing connections. The next time we add an out parameter to nmi_cmdline_reader_parse() we won't have to adjust all the call sites where this parameter doesn't matter.
Showing with 178 additions and 466 deletions