[LTP] [PATCH v2] tst_kconfig: Avoid reporting buffer overflow when parsing /proc/cmdline

Li Wang liwang@redhat.com
Fri Jun 21 14:05:12 CEST 2024


Hi Petr, All,


> I'll add macros to my TODO list, working on it sometimes during July.
>

The tricky part may be for TFAIL (TBROK) to distinguish from TERRNO or
TTERRNO in one macro.

  tst_res(TFAIL, " ")
  tst_res(TFAIL | TTERRNO, " ")
  tst_res(TFAIL | TERRNO, " ");

I haven't got a better idea unless we allow creating more macros like:

 TST_RES_TFAIL()
 TST_RES_TFAIL_TTERRNO()
 TST_RES_TFAIL_TERRNO()

But TBH, this looks a bit messy and not good for memories.


-- 
Regards,
Li Wang


More information about the ltp mailing list