[LTP] [PATCH V3 08/10] syscalls/move_mount: New tests
Petr Vorel
pvorel@suse.cz
Wed Feb 26 10:20:43 CET 2020
Hi Viresh,
> > > I don't think that is the case. tst_res(TBROK, ...) shouldn't (and
> > > isn't for me) result in skipping of tests.
> > Correct, tst_res() itself doesn't exit the test. But the fact it uses TBROK
> > without reporting any result previously leads to tst_brk from the library:
> > tst_test.c:1036: BROK: Test haven't reported results!
> Ahh, I missed this part then.
> > > Right, but in my case I can't put all setup stuff in setup() callback
> > > and some of the setup bits stay in run() callback as well.
> > Sure. But as a result of it I'd personally use tst_res(TFAIL).
> > But maybe I'm wrong and others will correct me.
> FWIW, I am the least educated guy here in terms of LTP stuff :)
You're doing well :).
> I just want to make sure I don't need to do it again and so wanted to
> better understand TBROK vs TFAIL thing.
+1.
> So the conclusion is that in the run() callback we should always use
> TFAIL ?
I'd wait on the outcome of the discussion here
https://patchwork.ozlabs.org/patch/1244781/
Kind regards,
Petr
More information about the ltp
mailing list