attempt to get reasons

This commit is contained in:
Sergio R. Caprile
2025-07-23 10:53:00 -03:00
parent 3c1f41e575
commit f9ed75d6b3
3 changed files with 9 additions and 2 deletions
+7 -2
View File
@@ -65,15 +65,20 @@ static char *host_ip;
static int s_num_tests = 0;
#define ABORT() \
usleep(500000); /* 500 ms, GH print reason */ \
#ifdef NO_SLEEP_ABORT
#define ABORT() abort()
#else
#define ABORT() \
sleep(2); /* 2s, GH print reason */ \
abort();
#endif
#define ASSERT(expr) \
do { \
s_num_tests++; \
if (!(expr)) { \
printf("FAILURE %s:%d: %s\n", __FILE__, __LINE__, #expr); \
fflush(stdout); \
ABORT(); \
} \
} while (0)
+1
View File
@@ -21,6 +21,7 @@ static int s_seg_sent = 0;
s_num_tests++; \
if (!(expr)) { \
printf("FAILURE %s:%d: %s\n", __FILE__, __LINE__, #expr); \
fflush(stdout); \
ABORT(); \
} \
} while (0)
+1
View File
@@ -18,6 +18,7 @@ static int s_num_tests = 0;
s_num_tests++; \
if (!(expr)) { \
printf("FAILURE %s:%d: %s\n", __FILE__, __LINE__, #expr); \
fflush(stdout); \
ABORT(); \
} \
} while (0)