[Ns-bugs] [Bug 1192] Some test cases fail to clean up properly (missing DoTeardown)
code at nsnam.ece.gatech.edu
Tue Jul 12 06:09:00 PDT 2011
--- Comment #10 from Claudio <claudio-daniel.freire at inria.fr> 2011-07-12 09:08:58 EDT ---
Ok, I found more sources of mis-isolation in tests, which could also be a real
bug (ie, not only affect tests).
1. SeedManager::SetSeed(..) does not do anything if the RNG has been
initialized already. This means, in some situations SetSeed could be ignored,
which I guess is not good for experiments either.
2. Mac48Address has global state that cannot be controlled (ie: a static
variable controlling the MAC sequence), so MACs assigned in PCAP-checking tests
make tests fail when ran in succession. If I change the static by a
GlobalValue, it gets fixed (thanks to the patch that resets GlobalValue s).
Thing is, PCAPs need re-generation (MACs are still different than expected in
current PCAPs, but consistent and reproducible).
Anybody knows how to generate new PCAPs?
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