Can we test an object that needs initialization and teardown?
Jerzy Krolak
jerzykrlk at gmail.com
Tue Oct 16 19:41:34 UTC 2018
Hi Adam,
> Basically... I am seeing instances of the state object being
> created which are never used for a test run.
Thank you for reproduction steps. I've run your tests and am getting same
results. For 5 iterations, there's always 50 constructor calls not matched
by @Arbiter.
I've found that extra instances are being created by jcstress after the
actual tests, in 'jcstress_consume' and 'jcstress_updateHolder' methods.
I guess using constructor / @Arbiter, instead of @Setup/@TearDown, won't do.
> b) Not a bug in JCStress.
Definitely.
@Aleksey: I have some working code that would solve this issue. With some
polishing, I could upload a patch here - would you be interested in adding
such features to jcstress?
Thanks, JK
More information about the jcstress-dev
mailing list