Continous integration / Tests (push) Canceled after 0s
Testing clients / Build beanstalkd (push) Canceled after 0s
Continous integration / Docker build (push) Canceled after 0s
Testing clients / Test Pheanstalk PHP (push) Canceled after 0s
Testing clients / Test Greenstalk Python (3.9) (push) Canceled after 0s
Testing clients / Test Pystalk Python (3.10) (push) Canceled after 0s
19 lines
517 B
C
19 lines
517 B
C
char *ctdir(void);
|
|
void ctfail(void);
|
|
void ctfailnow(void);
|
|
void ctresettimer(void);
|
|
void ctstarttimer(void);
|
|
void ctstoptimer(void);
|
|
void ctsetbytes(int);
|
|
void ctlogpn(const char*, int, const char*, ...) __attribute__((format(printf, 3, 4)));
|
|
#define ctlog(...) ctlogpn(__FILE__, __LINE__, __VA_ARGS__)
|
|
#define assert(x) do if (!(x)) {\
|
|
ctlog("%s", "test: " #x);\
|
|
ctfailnow();\
|
|
} while (0)
|
|
#define assertf(x, ...) do if (!(x)) {\
|
|
ctlog("%s", "test: " #x);\
|
|
ctlog(__VA_ARGS__);\
|
|
ctfailnow();\
|
|
} while (0)
|