[LTP] Question about the usage of tst_brk()
Jan Stancek
jstancek@redhat.com
Wed Nov 7 13:38:10 CET 2018
----- Original Message -----
> Hi!
> > tst_brk is macro in newlib, so maybe we can catch this at compile-time?
>
> Interesting idea, will you look into that?
Yes, I can.
>
> > > 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