Ignore:
File:
1 edited

Legend:

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

    rb9da9585 r7bdcac1  
    1212#include <time>
    1313
     14#include "long_tests.h"
     15
    1416#ifndef PREEMPTION_RATE
    1517#define PREEMPTION_RATE 10`ms
     
    2022}
    2123
    22 #ifdef LONG_TEST
     24#ifdef TEST_LONG
    2325static const unsigned long N = 375_000ul;
    2426#else
     
    9092// Waiter ABC
    9193void main( WaiterABC & this ) {
    92         for( int i = 0; i < N; i++ ) {
     94        for( int i = 0; TEST(i < N); i++ ) {
    9395                wait( condABC, globalA, globalB, globalC );
     96                KICK_WATCHDOG;
    9497        }
    9598
     
    100103// Waiter AB
    101104void main( WaiterAB & this ) {
    102         for( int i = 0; i < N; i++ ) {
     105        for( int i = 0; TEST(i < N); i++ ) {
    103106                wait( condAB , globalA, globalB );
     107                KICK_WATCHDOG;
    104108        }
    105109
     
    110114// Waiter AC
    111115void main( WaiterAC & this ) {
    112         for( int i = 0; i < N; i++ ) {
     116        for( int i = 0; TEST(i < N); i++ ) {
    113117                wait( condAC , globalA, globalC );
     118                KICK_WATCHDOG;
    114119        }
    115120
     
    120125// Waiter BC
    121126void main( WaiterBC & this ) {
    122         for( int i = 0; i < N; i++ ) {
     127        for( int i = 0; TEST(i < N); i++ ) {
    123128                wait( condBC , globalB, globalC );
     129                KICK_WATCHDOG;
    124130        }
    125131
Note: See TracChangeset for help on using the changeset viewer.