traffic-control: (fixes #2534) ARED and PIE examples should return 1 upon exit
This commit is contained in:
@@ -486,13 +486,13 @@ main (int argc, char *argv[])
|
||||
if (st.unforcedDrop > st.forcedDrop)
|
||||
{
|
||||
std::cout << "Drops due to prob mark should be less than the drops due to hard mark" << std::endl;
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
if (st.qLimDrop == 0)
|
||||
{
|
||||
std::cout << "There should be some drops due to queue full" << std::endl;
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
}
|
||||
else if (aredTest == 6 || aredTest == 7 || aredTest == 8 || aredTest == 9 || aredTest == 10 || aredTest == 14 || aredTest ==15)
|
||||
@@ -500,13 +500,13 @@ main (int argc, char *argv[])
|
||||
if (st.unforcedDrop > st.forcedDrop)
|
||||
{
|
||||
std::cout << "Drops due to prob mark should be less than the drops due to hard mark" << std::endl;
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
if (st.qLimDrop != 0)
|
||||
{
|
||||
std::cout << "There should be zero drops due to queue full" << std::endl;
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
}
|
||||
else if (aredTest == 12)
|
||||
@@ -514,13 +514,13 @@ main (int argc, char *argv[])
|
||||
if (st.unforcedDrop < st.forcedDrop)
|
||||
{
|
||||
std::cout << "Drops due to prob mark should be more than the drops due to hard mark" << std::endl;
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
if (st.qLimDrop != 0)
|
||||
{
|
||||
std::cout << "There should be zero drops due to queue full" << std::endl;
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -309,7 +309,7 @@ main (int argc, char *argv[])
|
||||
if (st.forcedDrop != 0)
|
||||
{
|
||||
std::cout << "There should be no drops due to queue full." << std::endl;
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
if (flowMonitor)
|
||||
|
||||
@@ -173,13 +173,13 @@ int main (int argc, char *argv[])
|
||||
if (st.unforcedDrop > st.forcedDrop)
|
||||
{
|
||||
std::cout << "Drops due to prob mark should be less than the drops due to hard mark" << std::endl;
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
if (st.qLimDrop != 0)
|
||||
{
|
||||
std::cout << "There should be zero drops due to queue full" << std::endl;
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
}
|
||||
else if (queueDiscType == "ARED")
|
||||
@@ -187,13 +187,13 @@ int main (int argc, char *argv[])
|
||||
if (st.unforcedDrop < st.forcedDrop)
|
||||
{
|
||||
std::cout << "Drops due to prob mark should be more than the drops due to hard mark" << std::endl;
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
if (st.qLimDrop != 0)
|
||||
{
|
||||
std::cout << "There should be zero drops due to queue full" << std::endl;
|
||||
exit (-1);
|
||||
exit (1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user