Skip to content

Commit e003e01

Browse files
committed
test for macosx
1 parent 302f14d commit e003e01

8 files changed

Lines changed: 5 additions & 1 deletion

build/configs.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,8 @@ elseif (APPLE)
3636
set(CMAKE_XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_WEAK "YES")
3737
set(CMAKE_XCODE_ATTRIBUTE_GCC_ENABLE_CPP_EXCEPTIONS "NO")
3838
set(CMAKE_XCODE_ATTRIBUTE_GCC_ENABLE_CPP_RTTI "NO")
39+
40+
if (OPT_UNITTEST)
41+
set(CMAKE_XCODE_ATTRIBUTE_GCC_STRICT_ALIASING "NO")
42+
endif()
3943
endif()
8.7 KB
Loading
236 Bytes
Loading
2.38 KB
Loading
7.4 KB
Loading
4.82 KB
Loading
7.53 KB
Loading

unit_tests/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void clear_dcache(void)
4343
tmp = sum;
4444
}
4545

46-
const uint8_t tolerance = 0;
46+
const uint8_t tolerance = 5;
4747
static uint8_t* test_buffer = NULL;
4848
static ps_canvas* test_canvas = NULL;
4949

0 commit comments

Comments
 (0)