Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/preempt_longrun/yield.c

    r7bdcac1 rb9da9585  
    22#include <thread>
    33#include <time>
    4 
    5 #include "long_tests.h"
    64
    75#ifndef PREEMPTION_RATE
     
    1311}
    1412
    15 #ifdef TEST_LONG
     13#ifdef LONG_TEST
    1614static const unsigned long N = 9_750_000ul;
    1715#else
     
    2220
    2321void main(worker_t & this) {
    24         for(int i = 0; TEST(i < N); i++) {
     22        for(int i = 0; i < N; i++) {
    2523                yield();
    26                 KICK_WATCHDOG;
    2724        }
    2825}
Note: See TracChangeset for help on using the changeset viewer.