source:
tests/long_tests.hfa
@
f9bf142
Last change on this file since f9bf142 was dc8511c, checked in by , 6 years ago | |
---|---|
|
|
File size: 380 bytes |
Rev | Line | |
---|---|---|
[7bdcac1] | 1 | #pragma once |
2 | ||
3 | #include <unistd.h> | |
4 | ||
5 | #if defined(TEST_FOREVER) | |
[ef952d7] | 6 | |
7 | static unsigned long long __kick_count = 0; | |
8 | #if !defined(__kick_rate) | |
9 | #define __kick_rate 5000ul | |
10 | #endif | |
11 | ||
[7bdcac1] | 12 | #define TEST(x) 1 |
[ef952d7] | 13 | #define KICK_WATCHDOG do { __kick_count++; if(__kick_count > __kick_rate) { write(STDOUT_FILENO, ".", 1); __kick_count = 0; } } while(0) |
14 | ||
15 | ||
[7bdcac1] | 16 | #else |
[ef952d7] | 17 | |
[7bdcac1] | 18 | #define TEST(x) x |
19 | #define KICK_WATCHDOG | |
[ef952d7] | 20 | |
[7bdcac1] | 21 | #endif |
Note: See TracBrowser
for help on using the repository browser.