View | Details | Raw Unified | Return to bug 2534
Collapse All | Expand All

(-)a/src/traffic-control/examples/adaptive-red-tests.cc (-6 / +6 lines)
 Lines 486-498    Link Here 
486
      if (st.unforcedDrop > st.forcedDrop)
486
      if (st.unforcedDrop > st.forcedDrop)
487
        {
487
        {
488
          std::cout << "Drops due to prob mark should be less than the drops due to hard mark" << std::endl;
488
          std::cout << "Drops due to prob mark should be less than the drops due to hard mark" << std::endl;
489
          exit (-1);
489
          exit (1);
490
        }
490
        }
491
491
492
      if (st.qLimDrop == 0)
492
      if (st.qLimDrop == 0)
493
        {
493
        {
494
          std::cout << "There should be some drops due to queue full" << std::endl;
494
          std::cout << "There should be some drops due to queue full" << std::endl;
495
          exit (-1);
495
          exit (1);
496
        }
496
        }
497
    }
497
    }
498
  else if (aredTest == 6 || aredTest == 7 || aredTest == 8 || aredTest == 9 || aredTest == 10 || aredTest == 14 || aredTest ==15)
498
  else if (aredTest == 6 || aredTest == 7 || aredTest == 8 || aredTest == 9 || aredTest == 10 || aredTest == 14 || aredTest ==15)
 Lines 500-512    Link Here 
500
      if (st.unforcedDrop > st.forcedDrop)
500
      if (st.unforcedDrop > st.forcedDrop)
501
        {
501
        {
502
          std::cout << "Drops due to prob mark should be less than the drops due to hard mark" << std::endl;
502
          std::cout << "Drops due to prob mark should be less than the drops due to hard mark" << std::endl;
503
          exit (-1);
503
          exit (1);
504
        }
504
        }
505
505
506
      if (st.qLimDrop != 0)
506
      if (st.qLimDrop != 0)
507
        {
507
        {
508
          std::cout << "There should be zero drops due to queue full" << std::endl;
508
          std::cout << "There should be zero drops due to queue full" << std::endl;
509
          exit (-1);
509
          exit (1);
510
        }
510
        }
511
    }
511
    }
512
  else if (aredTest == 12)
512
  else if (aredTest == 12)
 Lines 514-526    Link Here 
514
      if (st.unforcedDrop < st.forcedDrop)
514
      if (st.unforcedDrop < st.forcedDrop)
515
        {
515
        {
516
          std::cout << "Drops due to prob mark should be more than the drops due to hard mark" << std::endl;
516
          std::cout << "Drops due to prob mark should be more than the drops due to hard mark" << std::endl;
517
          exit (-1);
517
          exit (1);
518
        }
518
        }
519
519
520
      if (st.qLimDrop != 0)
520
      if (st.qLimDrop != 0)
521
        {
521
        {
522
          std::cout << "There should be zero drops due to queue full" << std::endl;
522
          std::cout << "There should be zero drops due to queue full" << std::endl;
523
          exit (-1);
523
          exit (1);
524
        }
524
        }
525
    }
525
    }
526
526
(-)a/src/traffic-control/examples/pie-example.cc (-1 / +1 lines)
 Lines 309-315    Link Here 
309
  if (st.forcedDrop != 0)
309
  if (st.forcedDrop != 0)
310
    {
310
    {
311
      std::cout << "There should be no drops due to queue full." << std::endl;
311
      std::cout << "There should be no drops due to queue full." << std::endl;
312
      exit (-1);
312
      exit (1);
313
    }
313
    }
314
314
315
  if (flowMonitor)
315
  if (flowMonitor)
(-)a/src/traffic-control/examples/red-vs-ared.cc (-4 / +4 lines)
 Lines 173-185    Link Here 
173
      if (st.unforcedDrop > st.forcedDrop)
173
      if (st.unforcedDrop > st.forcedDrop)
174
        {
174
        {
175
          std::cout << "Drops due to prob mark should be less than the drops due to hard mark" << std::endl;
175
          std::cout << "Drops due to prob mark should be less than the drops due to hard mark" << std::endl;
176
          exit (-1);
176
          exit (1);
177
        }
177
        }
178
178
179
      if (st.qLimDrop != 0)
179
      if (st.qLimDrop != 0)
180
        {
180
        {
181
          std::cout << "There should be zero drops due to queue full" << std::endl;
181
          std::cout << "There should be zero drops due to queue full" << std::endl;
182
          exit (-1);
182
          exit (1);
183
        }
183
        }
184
    }
184
    }
185
  else if (queueDiscType == "ARED")
185
  else if (queueDiscType == "ARED")
 Lines 187-199    Link Here 
187
      if (st.unforcedDrop < st.forcedDrop)
187
      if (st.unforcedDrop < st.forcedDrop)
188
        {
188
        {
189
          std::cout << "Drops due to prob mark should be more than the drops due to hard mark" << std::endl;
189
          std::cout << "Drops due to prob mark should be more than the drops due to hard mark" << std::endl;
190
          exit (-1);
190
          exit (1);
191
        }
191
        }
192
192
193
      if (st.qLimDrop != 0)
193
      if (st.qLimDrop != 0)
194
        {
194
        {
195
          std::cout << "There should be zero drops due to queue full" << std::endl;
195
          std::cout << "There should be zero drops due to queue full" << std::endl;
196
          exit (-1);
196
          exit (1);
197
        }
197
        }
198
    }
198
    }
199
199

Return to bug 2534