File tree Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,6 @@ build_script:
25
25
test_script :
26
26
- ctest --verbose --output-on-failure -C %Configuration%
27
27
28
- # VS 2017 only: readme examples don't presently succeed, exclude
29
- for :
30
- - matrix :
31
- only :
32
- - image : Visual Studio 2017
33
- test_script :
34
- - ctest --verbose --output-on-failure -C %Configuration% -E readme
35
-
36
28
matrix :
37
29
fast_finish : true
38
30
exclude :
Original file line number Diff line number Diff line change @@ -44,11 +44,14 @@ target_link_libraries(parse_many_test simdjson-windows-headers)
44
44
add_cpp_test(pointercheck pointercheck.cpp)
45
45
46
46
# Compile-only tests
47
- add_compile_test(readme_examples readme_examples.cpp TRUE )
48
- # Test that readme_examples does NOT compile when SIMDJSON_EXCEPTIONS=0 (i.e. test that the define
49
- # works even if exceptions are on)
50
- add_compile_test(readme_examples_will_fail_with_exceptions_off readme_examples.cpp FALSE )
51
- target_compile_definitions (readme_examples_will_fail_with_exceptions_off PRIVATE SIMDJSON_EXCEPTIONS=0)
47
+ # Don't add the tests if we're on VS2017 or older; they don't succeed.
48
+ if (NOT (MSVC AND MSVC_VERSION LESS 1920))
49
+ add_compile_test(readme_examples readme_examples.cpp TRUE )
50
+ # Test that readme_examples does NOT compile when SIMDJSON_EXCEPTIONS=0 (i.e. test that the define
51
+ # works even if exceptions are on)
52
+ add_compile_test(readme_examples_will_fail_with_exceptions_off readme_examples.cpp FALSE )
53
+ target_compile_definitions (readme_examples_will_fail_with_exceptions_off PRIVATE SIMDJSON_EXCEPTIONS=0)
54
+ endif ()
52
55
53
56
if (MSVC )
54
57
add_custom_command (TARGET basictests POST_BUILD # Adds a post-build event
You can’t perform that action at this time.
0 commit comments