Test commit to see the failed test

This commit is contained in:
Carmeli Tamir 2019-10-16 09:10:22 -04:00
parent bd7ecf0a90
commit 1badd67f1c
3 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,8 @@ before_install:
sudo apt-get install -qq g++-4.7 && export CXX="g++-4.7" CC="gcc-4.7" sudo apt-get install -qq g++-4.7 && export CXX="g++-4.7" CC="gcc-4.7"
fi fi
fi fi
env:
- CTEST_OUTPUT_ON_FAILURE=1
before_script: before_script:
- mkdir build - mkdir build
- cd build - cd build
@ -21,7 +23,7 @@ before_script:
- cd .. - cd ..
script: script:
- cmake --build build - cmake --build build
- cmake --build build --target check - cmake --build build --target test
matrix: matrix:
exclude: exclude:
- os: linux - os: linux

View File

@ -46,4 +46,3 @@ if (NOT DEFINED CMAKE_CXX_STANDARD)
endif() endif()
add_test(yaml-cpp::test yaml-cpp-tests) add_test(yaml-cpp::test yaml-cpp-tests)
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)

View File

@ -25,7 +25,7 @@ namespace {
TEST(NodeTest, SimpleScalar) { TEST(NodeTest, SimpleScalar) {
Node node = Node("Hello, World!"); Node node = Node("Hello, World!");
EXPECT_TRUE(node.IsScalar()); EXPECT_TRUE(node.IsScalar());
EXPECT_EQ("Hello, World!", node.as<std::string>()); EXPECT_EQ("Hello, World!!", node.as<std::string>());
} }
TEST(NodeTest, IntScalar) { TEST(NodeTest, IntScalar) {