improve tests

This commit is contained in:
2024-10-16 16:13:15 +02:00
parent a0fcd8b985
commit 69d96b40ec
3 changed files with 25 additions and 18 deletions

View File

@@ -18,10 +18,10 @@ namespace test {
#define TD_TEST_SUCCESSFUL 0
/**
* \def BLITZ_TEST_FAILED
* \def TD_TEST_FAILED
* \brief Used in tests to indicate that a test failed
*/
#define BLITZ_TEST_FAILED 1
#define TD_TEST_FAILED 1
#ifndef __FUNCTION_NAME__
#ifdef _WIN32
@@ -40,7 +40,7 @@ namespace test {
#define td_test_assert(...) \
if (!static_cast<bool>(__VA_ARGS__)) { \
td::test::LogAssert(#__VA_ARGS__, __FILE__, __LINE__, __FUNCTION_NAME__); \
std::exit(BLITZ_TEST_FAILED); \
std::exit(TD_TEST_FAILED); \
}