Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/long_tests.h

    ref952d7 r7bdcac1  
    44
    55#if   defined(TEST_FOREVER)
    6 
    7 static unsigned long long __kick_count = 0;
    8 #if !defined(__kick_rate)
    9 #define __kick_rate 5000ul
    10 #endif
    11 
    126#define TEST(x) 1
    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 
     7#define KICK_WATCHDOG write(STDOUT_FILENO, ".", 1)
     8#elif defined(TEST_LONG)
    189#define TEST(x) x
    1910#define KICK_WATCHDOG
    20 
     11#else
     12#define TEST(x) x
     13#define KICK_WATCHDOG
    2114#endif
Note: See TracChangeset for help on using the changeset viewer.