Ignore:
File:
1 edited

Legend:

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

    r7bdcac1 rb9da9585  
    1212#include <time>
    1313
    14 #include "long_tests.h"
    15 
    1614#ifndef PREEMPTION_RATE
    1715#define PREEMPTION_RATE 10`ms
     
    2220}
    2321
    24 #ifdef TEST_LONG
     22#ifdef LONG_TEST
    2523static const unsigned long N = 375_000ul;
    2624#else
     
    9290// Waiter ABC
    9391void main( WaiterABC & this ) {
    94         for( int i = 0; TEST(i < N); i++ ) {
     92        for( int i = 0; i < N; i++ ) {
    9593                wait( condABC, globalA, globalB, globalC );
    96                 KICK_WATCHDOG;
    9794        }
    9895
     
    103100// Waiter AB
    104101void main( WaiterAB & this ) {
    105         for( int i = 0; TEST(i < N); i++ ) {
     102        for( int i = 0; i < N; i++ ) {
    106103                wait( condAB , globalA, globalB );
    107                 KICK_WATCHDOG;
    108104        }
    109105
     
    114110// Waiter AC
    115111void main( WaiterAC & this ) {
    116         for( int i = 0; TEST(i < N); i++ ) {
     112        for( int i = 0; i < N; i++ ) {
    117113                wait( condAC , globalA, globalC );
    118                 KICK_WATCHDOG;
    119114        }
    120115
     
    125120// Waiter BC
    126121void main( WaiterBC & this ) {
    127         for( int i = 0; TEST(i < N); i++ ) {
     122        for( int i = 0; i < N; i++ ) {
    128123                wait( condBC , globalB, globalC );
    129                 KICK_WATCHDOG;
    130124        }
    131125
Note: See TracChangeset for help on using the changeset viewer.