- File:
-
- 1 edited
-
src/tests/preempt_longrun/processor.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/processor.c
rb9da9585 r7bdcac1 2 2 #include <thread> 3 3 #include <time> 4 5 #include <unistd.h> 6 7 #include "long_tests.h" 4 8 5 9 #ifndef PREEMPTION_RATE … … 11 15 } 12 16 13 static const unsigned long N = 5 _000ul;17 static const unsigned long N = 50_000ul; 14 18 15 19 int main(int argc, char* argv[]) { … … 18 22 p[pi] = new(); 19 23 } 20 for ( int i = 0; i < N; i++) {24 for ( int i = 0; TEST(i < N); i++) { 21 25 int pi = i % 15; 22 26 delete( p[pi] ); 23 27 p[pi] = new(); 28 KICK_WATCHDOG; 29 } 30 for ( int pi = 0; pi < 15; pi++ ) { 31 delete( p[pi] ); 24 32 } 25 33 }
Note:
See TracChangeset
for help on using the changeset viewer.