mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-21 11:31:07 +00:00
aedi: add expect macro to improve test failure report
this allows to make tests a bit more concise
This commit is contained in:
parent
20b29b40dc
commit
bc866fdd9d
2 changed files with 4 additions and 0 deletions
|
@ -75,6 +75,7 @@ class TestDepsTarget(BuildTarget):
|
|||
'-arch', 'x86_64',
|
||||
'-arch', 'arm64',
|
||||
'-std=c++17',
|
||||
'-include', os.path.join(test_path, 'aedi.h'),
|
||||
'-o', exe_name,
|
||||
entry.path,
|
||||
]
|
||||
|
|
3
test/aedi.h
Normal file
3
test/aedi.h
Normal file
|
@ -0,0 +1,3 @@
|
|||
#define AEDI_EXPECT(CODE) if (!(CODE)) { puts(#CODE); return 1; }
|
||||
|
||||
extern "C" int puts(const char*);
|
Loading…
Reference in a new issue