Browse Source

engine: make test assert failure more pretty

pull/2/head
Alibek Omarov 3 years ago
parent
commit
3b933eabf5
  1. 3
      engine/common/tests.h

3
engine/common/tests.h

@ -17,12 +17,13 @@ extern struct tests_stats_s tests_stats;
if(!( exp )) \ if(!( exp )) \
{ \ { \
tests_stats.failed++; \ tests_stats.failed++; \
Msg( "assert failed at %s:%i\n", __FILE__, __LINE__ ); \ Msg( S_ERROR "assert failed at %s:%i\n", __FILE__, __LINE__ ); \
} \ } \
else tests_stats.passed++; else tests_stats.passed++;
void Test_RunImagelib( void ); void Test_RunImagelib( void );
void Test_RunLibCommon( void ); void Test_RunLibCommon( void );
void Test_RunCommon( void );
#endif #endif

Loading…
Cancel
Save