ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
|
Last change
on this file since 2aa2056f was bf71cfd, checked in by Thierry Delisle <tdelisle@…>, 7 years ago |
|
Moved up many directories in source
|
-
Property mode
set to
100644
|
|
File size:
380 bytes
|
| Line | |
|---|
| 1 | #pragma once
|
|---|
| 2 |
|
|---|
| 3 | #include <unistd.h>
|
|---|
| 4 |
|
|---|
| 5 | #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 |
|
|---|
| 12 | #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 |
|
|---|
| 18 | #define TEST(x) x
|
|---|
| 19 | #define KICK_WATCHDOG
|
|---|
| 20 |
|
|---|
| 21 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.