Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/concurrent/signal/disjoint.c

    r8638cef 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 = 300_000ul;
    1719#else
     
    7173        if( (d.counter % 1000) == 0 ) sout | d.counter | endl;
    7274
    73         return d.counter < N;
     75        return TEST(d.counter < N);
    7476}
    7577
     
    7779
    7880void main( Waiter & this ) {
    79         while( wait( mut, data ) ) { yield(); }
     81        while( wait( mut, data ) ) { KICK_WATCHDOG; yield(); }
    8082}
    8183
     
    9496
    9597        //This is technically a mutual exclusion violation but the mutex monitor protects us
    96         bool running = data.counter < N && data.counter > 0;
     98        bool running = TEST(data.counter < N) && data.counter > 0;
    9799        if( data.state != SIGNAL && running ) {
    98100                sout | "ERROR Eager signal" | data.state | endl;
Note: See TracChangeset for help on using the changeset viewer.