traffic-control: (fixes #2534) ARED and PIE examples should return 1 upon exit

This commit is contained in:
Mohit P. Tahiliani
2016-11-05 12:44:39 +01:00
parent f552e0a63d
commit 1748d667eb
3 changed files with 11 additions and 11 deletions

View File

@@ -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);
}
}

View File

@@ -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)

View File

@@ -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);
}
}