mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
tests: use custom assertion define
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define TEST_ASSERT(x) { \
|
||||
if (!((x))) { \
|
||||
fflush(stdout); \
|
||||
fprintf(stderr, "FAILED: [%s:%d] %s\n", __FILE__, __LINE__, #x); \
|
||||
fflush(stderr); \
|
||||
exit(1); \
|
||||
} \
|
||||
}
|
||||
Reference in New Issue
Block a user