Skip to content

Commit

Permalink
Attempt to fix the Appveyor build
Browse files Browse the repository at this point in the history
  • Loading branch information
Naios committed Aug 18, 2018
1 parent f31bdd5 commit ce2ed01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ clone_script:
- cmd: git submodule update --init --recursive

before_build:
- cmd: cmake -H. -Bbuild -A%PLATFORM%
- cmd: cmake -H. -Bbuild -A%PLATFORM% -DCMAKE_CXX_FLAGS="/std:c++17"

build_script:
- cmd: cmake --build build --config %CONFIGURATION% --target ALL_BUILD -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal /maxcpucount:2 /nologo
Expand Down
4 changes: 1 addition & 3 deletions test/noexcept-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ TYPED_TEST(AllNoExceptTests, CallAbortsIfEmpty) {
}
#endif // TESTS_NO_DEATH_TESTS

#ifndef FU2_HAS_CXX17_NOEXCEPT_FUNCTION_TYPE

#ifdef FU2_HAS_CXX17_NOEXCEPT_FUNCTION_TYPE
TYPED_TEST(AllNoExceptTests, NoExceptCallSuceeds) {
typename TestFixture::template left_t<int() noexcept> left = []() noexcept {
return 12345;
Expand All @@ -37,5 +36,4 @@ TYPED_TEST(AllNoExceptTests, CallAbortsIfEmptyAndNoExcept) {
EXPECT_DEATH(left(), "");
}
#endif // TESTS_NO_DEATH_TESTS

#endif // FU2_HAS_CXX17_NOEXCEPT_FUNCTION_TYPE

0 comments on commit ce2ed01

Please sign in to comment.