/[resiprocate]/main/sip/resiprocate/test/testFifo.cxx
ViewVC logotype

Diff of /main/sip/resiprocate/test/testFifo.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3373 by dlb, Mon Sep 13 06:59:31 2004 UTC revision 3374 by dlb, Wed Oct 6 11:18:51 2004 UTC
# Line 80  Line 80 
80        delete fp;        delete fp;
81        c = tlf.add(new Foo("third"), TimeLimitFifo<Foo>::EnforceTimeDepth);        c = tlf.add(new Foo("third"), TimeLimitFifo<Foo>::EnforceTimeDepth);
82        assert(c);        assert(c);
83    
84          while (!tlf.empty())
85          {
86             delete tlf.getNext();
87          }
88     }     }
89    
90     {     {
# Line 103  Line 108 
108        delete fp;        delete fp;
109        c = tlfNS.add(new Foo("third"), TimeLimitFifo<Foo>::EnforceTimeDepth);        c = tlfNS.add(new Foo("third"), TimeLimitFifo<Foo>::EnforceTimeDepth);
110        assert(c);        assert(c);
111    
112          while (!tlfNS.empty())
113          {
114             delete tlfNS.getNext();
115          }
116     }     }
117    
118     {     {
# Line 135  Line 145 
145    
146        c = tlfNS.add(new Foo("first"), TimeLimitFifo<Foo>::EnforceTimeDepth);        c = tlfNS.add(new Foo("first"), TimeLimitFifo<Foo>::EnforceTimeDepth);
147        assert(c);        assert(c);
148    
149          while (!tlfNS.empty())
150          {
151             delete tlfNS.getNext();
152          }
153     }     }
154    
155     {     {
# Line 172  Line 187 
187    
188        c = tlfNS.add(new Foo("first"), TimeLimitFifo<Foo>::EnforceTimeDepth);        c = tlfNS.add(new Foo("first"), TimeLimitFifo<Foo>::EnforceTimeDepth);
189        assert(c);        assert(c);
190    
191          while (!tlfNS.empty())
192          {
193             delete tlfNS.getNext();
194          }
195     }     }
196    
197     {     {
# Line 189  Line 209 
209           assert(c);           assert(c);
210           sleep(1);           sleep(1);
211        }        }
212    
213          while (!tlfNS.empty())
214          {
215             delete tlfNS.getNext();
216          }
217     }     }
218        
219     cerr << "All OK" << endl;     cerr << "All OK" << endl;

Legend:
Removed from v.3373  
changed lines
  Added in v.3374

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27