[LTP] Question about the usage of tst_brk()

Cyril Hrubis chrubis@suse.cz
Wed Nov 7 12:54:46 CET 2018


Hi!
> tst_brk is macro in newlib, so maybe we can catch this at compile-time?

Interesting idea, will you look into that?

> > If we wanted to enable TPASS and TFAIL we would have to first define sane
> > semantic for it. I guess that something as "exit currect test process and
> > increment result counters" would be reasonable, this could be done with:
> 
> tst_brk() always suggested to me that this is somehow unusual termination
> of test - something's not right with environment or test itself.
> 
> Our docs say "Printf-like function to report error and exit the test",
> so my preference would to not use it for "good" outcomes.

Well yes, the name suggests that.

Maybe we just need a few more reporting functions, I was thinking of
adding tst_chk() that would print PASS/FAIL based on expression passed
as first argument, since it seems that several people wanted to have
something like this.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list