Ignore:
Timestamp:
Jun 14, 2018, 4:33:25 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
Children:
270fdcf
Parents:
d35e796
Message:

Change watchdog tests to output a a frequency smaller than 1Hz

Location:
src/tests/concurrent
Files:
3 edited

Legend:

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

    rd35e796 ref952d7  
    55#include <time>
    66
     7#define __kick_rate 150000ul
    78#include "long_tests.h"
    89
     
    2526void main(Coroutine& this) {
    2627        while(true) {
    27                 sout | "Coroutine 1" | endl;
     28                #if !defined(TEST_FOREVER)
     29                        sout | "Coroutine 1" | endl;
     30                #endif
    2831                yield();
    29                 sout | "Coroutine 2" | endl;
     32                #if !defined(TEST_FOREVER)
     33                        sout | "Coroutine 2" | endl;
     34                #endif
    3035                suspend();
    3136        }
     
    3641        Coroutine c;
    3742        for(int i = 0; TEST(i < N); i++) {
    38                 sout | "Thread 1" | endl;
     43                #if !defined(TEST_FOREVER)
     44                        sout | "Thread 1" | endl;
     45                #endif
    3946                resume(c);
    40                 sout | "Thread 2" | endl;
     47                #if !defined(TEST_FOREVER)
     48                        sout | "Thread 2" | endl;
     49                #endif
    4150                yield();
    4251                KICK_WATCHDOG;
  • src/tests/concurrent/signal/disjoint.c

    rd35e796 ref952d7  
    6969        }
    7070
    71         d.counter++;
    72 
    73         if( (d.counter % 1000) == 0 ) sout | d.counter | endl;
     71        #if !defined(TEST_FOREVER)
     72                d.counter++;
     73                if( (d.counter % 1000) == 0 ) sout | d.counter | endl;
     74        #endif
    7475
    7576        return TEST(d.counter < N);
  • src/tests/concurrent/signal/wait.c

    rd35e796 ref952d7  
    1212#include <time>
    1313
     14#define __kick_rate 12000ul
    1415#include "long_tests.h"
    1516
Note: See TracChangeset for help on using the changeset viewer.