[Ns-bugs] [Bug 1192] Some test cases fail to clean up properly (missing DoTeardown)

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Wed Jul 6 15:14:13 PDT 2011


https://www.nsnam.org/bugzilla/show_bug.cgi?id=1192

--- Comment #4 from Tom Henderson <tomh at tomh.org> 2011-07-06 18:14:11 EDT ---
(In reply to comment #3)
> In the past, I was as frustrated as you by this and put together similar
> patches but I eventually gave up because I could not see how we could make sure
> that all our global variables are reset to the right state after a test runs.
> So, I thought: if I cannot get this right 100%, what is the point of making
> people believe it might work and suffer when it does not ? i.e., I chose to
> live with test.py (even though I hate this).
> 
> I would tend to feel like making this bug as WONTFIX based on the above unless
> you feel that you can really make the whole attribute system be nicely reset
> upon test completion to make sure different tests do not interfere on each
> other.

I was wondering whether config-store could be leveraged to save the initial
state of defaults and reload it every new test.

Isn't this in general an issue of running multiple simulations from one main();
i.e. the same problem would be exhibited in programs like this one:
examples/wireless/wifi-adhoc.cc ?

Should we be advising people not to do this and to do multiple runs from
outside of ns-3 main programs?

-- 
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list