improve tests
This commit is contained in:
@@ -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); \
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user