[LTP] [PATCH 1/2] sbrk01: Refactor the test using new LTP API
Avinesh Kumar
akumar@suse.de
Wed Aug 9 15:22:02 CEST 2023
Hi Li,
> > - tret = sbrk(test->increment);
> > - TEST_ERRNO = errno;
> > + tret = sbrk(tc->increment);
> > + TST_ERR = errno;
>
> Can we make use of the LTP test macro TESTPTR()?
> It has already given TST_RET_PRT and TST_ERR inside that.
>
> See:
> https://github.com/linux-test-project/ltp/blob/master/include/tst_test_macro
> s.h#L30
Thank you for reviewing and pointing this out, I have sent the updated patches
with TESTPTR() macro.
--
Regards,
Avinesh
More information about the ltp
mailing list