Fix a unit test typo (thanks Providence Salumu Munga
authorRaj Bhattacharjea <raj.b@gatech.edu>
Tue, 19 Aug 2008 14:13:01 -0400
changeset 3545 9358e0be63d2
parent 3544 3685ab98e4b2
child 3546 cecda7126440
Fix a unit test typo (thanks Providence Salumu Munga
src/internet-stack/tcp-socket-impl.cc
--- a/src/internet-stack/tcp-socket-impl.cc	Tue Aug 19 17:48:09 2008 +0100
+++ b/src/internet-stack/tcp-socket-impl.cc	Tue Aug 19 14:13:01 2008 -0400
@@ -1739,7 +1739,7 @@
 void
 TcpSocketImplTest::Test1_HandleRecv (Ptr<Socket> sock)
 {
-  NS_ASSERT (sock == sock0 | sock == sock1);
+  NS_ASSERT (sock == sock0 || sock == sock1);
   Ptr<Packet> p = sock->Recv();
   uint32_t sz = p->GetSize();
   if (sock == sock1)
@@ -1769,7 +1769,7 @@
 void
 TcpSocketImplTest::Test2_HandleRecv (Ptr<Socket> sock)
 {
-  NS_ASSERT (sock == sock0 | sock == sock1);
+  NS_ASSERT (sock == sock0 || sock == sock1);
   Ptr<Packet> p = sock->Recv();
   uint32_t sz = p->GetSize();
   if (sock == sock1)