[Ns-developers] udp-socket.cc tests
Gustavo Carneiro
gjcarneiro at gmail.com
Fri Mar 21 05:25:41 PDT 2008
On 20/03/2008, Mathieu Lacage <mathieu.lacage at sophia.inria.fr> wrote:
>
> hi,
>
> While porting the tests in udp-socket.cc to the SimpleNetDevice instead
> of PointToPointNetDevice, I noticed that the tests seem to be bogus and
> seem to not test what they think they are testing. i.e., the code does
> not connect the rxDev2 device to the test channel (see line 445) so, the
> test which checks that socket2 is not getting any packet on line 483
> seems to be buggy.
>
> Since I could not figure out where this problem came from (it seems to
> have been there since the test was written), I thought that it would be
> best to send this email here, in the hope that someone more
> knowledgeable than me can deal with this.
I wrote those tests. I think you are right; at some point I refactored the
code unit test to add multiple interfaces to the receiver node, to test some
broadcast things, but forgot to attach the newly created netdevice to a
channel. Since it's point-to-point netdevices I'm testing with, the code
needs two netdevices also in the transmitter node, not just in the
receiver...
If you can wait a few hours, I'll fix the unit tests.
Sorry.
--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert
More information about the Ns-developers
mailing list