diff --git a/src/traffic-control/examples/adaptive-red-tests.cc b/src/traffic-control/examples/adaptive-red-tests.cc index bf6aadcb8..1bf86d57b 100644 --- a/src/traffic-control/examples/adaptive-red-tests.cc +++ b/src/traffic-control/examples/adaptive-red-tests.cc @@ -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); } } diff --git a/src/traffic-control/examples/pie-example.cc b/src/traffic-control/examples/pie-example.cc index 3fd314bf6..d5d02be17 100644 --- a/src/traffic-control/examples/pie-example.cc +++ b/src/traffic-control/examples/pie-example.cc @@ -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) diff --git a/src/traffic-control/examples/red-vs-ared.cc b/src/traffic-control/examples/red-vs-ared.cc index 4670db07e..57a7887e0 100644 --- a/src/traffic-control/examples/red-vs-ared.cc +++ b/src/traffic-control/examples/red-vs-ared.cc @@ -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); } }