소스 검색

core: do not use standard CE_* macros when testing

Daniele Bartolini 5 년 전
부모
커밋
5f76b023d3
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/core/unit_tests.cpp

+ 4 - 1
src/core/unit_tests.cpp

@@ -40,6 +40,9 @@
 #include "core/time.h"
 #include "core/time.h"
 #include <stdlib.h> // EXIT_SUCCESS, EXIT_FAILURE
 #include <stdlib.h> // EXIT_SUCCESS, EXIT_FAILURE
 
 
+#undef CE_ASSERT
+#undef CE_ENSURE
+#undef CE_FATAL
 #define ENSURE(condition)                                \
 #define ENSURE(condition)                                \
 	do                                                   \
 	do                                                   \
 	{                                                    \
 	{                                                    \
@@ -1075,7 +1078,7 @@ static void test_guid()
 	{
 	{
 		Guid guid1 = guid::parse("8ec79062-c8fd-41b5-b044-cb545afc9976");
 		Guid guid1 = guid::parse("8ec79062-c8fd-41b5-b044-cb545afc9976");
 		Guid guid2 = guid::parse("8f879a4e-e9dd-4981-8b9e-344bb917d7dc");
 		Guid guid2 = guid::parse("8f879a4e-e9dd-4981-8b9e-344bb917d7dc");
-		CE_ENSURE(guid1 < guid2);
+		ENSURE(guid1 < guid2);
 	}
 	}
 	guid_globals::shutdown();
 	guid_globals::shutdown();
 	memory_globals::shutdown();
 	memory_globals::shutdown();