Ignore:
Timestamp:
Jun 14, 2018, 4:33:25 PM (6 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/long_tests.h

    rd35e796 ref952d7  
    44
    55#if   defined(TEST_FOREVER)
     6
     7static unsigned long long __kick_count = 0;
     8#if !defined(__kick_rate)
     9#define __kick_rate 5000ul
     10#endif
     11
    612#define TEST(x) 1
    7 #define KICK_WATCHDOG write(STDOUT_FILENO, ".", 1)
    8 #elif defined(TEST_LONG)
     13#define KICK_WATCHDOG do { __kick_count++; if(__kick_count > __kick_rate) { write(STDOUT_FILENO, ".", 1); __kick_count = 0; } } while(0)
     14
     15
     16#else
     17
    918#define TEST(x) x
    1019#define KICK_WATCHDOG
    11 #else
    12 #define TEST(x) x
    13 #define KICK_WATCHDOG
     20
    1421#endif
Note: See TracChangeset for help on using the changeset viewer.