Ignore:
Timestamp:
Mar 8, 2018, 12:56:02 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, 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, resolv-new, with_gc
Children:
9d6f011, b2fe1c9
Parents:
e61de5b
Message:

Updated longrun tests have a more consistent duration

File:
1 edited

Legend:

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

    re61de5b r70969f8  
    33#include <stdlib>
    44#include <thread>
     5
     6#ifdef LONG_TEST
     7static const unsigned long N = 600_000ul;
     8#else
     9static const unsigned long N = 1_000ul;
     10#endif
    511
    612coroutine Coroutine {};
     
    1824int main(int argc, char* argv[]) {
    1925        Coroutine c;
    20         for(int i = 0; i < 1_000; i++) {
     26        for(int i = 0; i < N; i++) {
    2127                sout | "Thread 1" | endl;
    2228                resume(c);
Note: See TracChangeset for help on using the changeset viewer.