Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/concurrent/coroutineYield.c

    rb9da9585 r7bdcac1  
    44#include <thread>
    55#include <time>
     6
     7#include "long_tests.h"
    68
    79#ifndef PREEMPTION_RATE
     
    1315}
    1416
    15 #ifdef LONG_TEST
     17#ifdef TEST_LONG
    1618static const unsigned long N = 600_000ul;
    1719#else
     
    3335int main(int argc, char* argv[]) {
    3436        Coroutine c;
    35         for(int i = 0; i < N; i++) {
     37        for(int i = 0; TEST(i < N); i++) {
    3638                sout | "Thread 1" | endl;
    3739                resume(c);
    3840                sout | "Thread 2" | endl;
    3941                yield();
     42                KICK_WATCHDOG;
    4043        }
    4144}
Note: See TracChangeset for help on using the changeset viewer.