Ignore:
File:
1 edited

Legend:

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

    rb9da9585 r7bdcac1  
    22#include <thread>
    33#include <time>
     4
     5#include "long_tests.h"
    46
    57#ifndef PREEMPTION_RATE
     
    1113}
    1214
    13 #ifdef LONG_TEST
     15#ifdef TEST_LONG
    1416static const unsigned long N = 9_750_000ul;
    1517#else
     
    2022
    2123void main(worker_t & this) {
    22         for(int i = 0; i < N; i++) {
     24        for(int i = 0; TEST(i < N); i++) {
    2325                yield();
     26                KICK_WATCHDOG;
    2427        }
    2528}
Note: See TracChangeset for help on using the changeset viewer.