File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,62 +8,61 @@ common_sources: &all_sources
88matrix :
99 include :
1010 - os : linux
11- compiler : gcc
1211 addons :
1312 apt :
1413 sources : ['ubuntu-toolchain-r-test']
1514 packages : ['g++-4.8']
16- env : COMPILER='g++-4.8'
15+ env :
16+ - MATRIX_EVAL="CC=gcc-4.8 && CXX=g++-4.8"
1717
1818 - os : linux
19- compiler : gcc
2019 addons :
2120 apt :
2221 sources : *all_sources
2322 packages : ['g++-4.9']
24- env : COMPILER='g++-4.9'
23+ env :
24+ - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
2525
2626 - os : linux
27- compiler : gcc
2827 addons :
2928 apt :
3029 sources : *all_sources
3130 packages : ['g++-5']
32- env : COMPILER='g++-5'
31+ env :
32+ - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
3333
3434 - os : linux
35- compiler : gcc
3635 addons : &gcc6
3736 apt :
3837 sources : *all_sources
3938 packages : ['g++-6']
40- env : COMPILER='g++-6'
39+ env :
40+ - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
4141
4242 - os : linux
43- compiler : gcc
4443 addons : &gcc7
4544 apt :
4645 sources : *all_sources
4746 packages : ['g++-7']
48- env : COMPILER='g++-7'
47+ env :
48+ - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
4949
5050 - os : linux
51- compiler : gcc
5251 addons : *gcc6
53- env : COMPILER='g++-6' CPP14=1
52+ env :
53+ - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6 CPP14=1"
5454
5555 - os : linux
56- compiler : gcc
5756 addons : *gcc7
58- env : COMPILER='g++-7' CPP14=1
59-
60- install :
61- - cmake . -Dbrynet_BUILD_EXAMPLES=ON -Dbrynet_BUILD_TESTS=ON
57+ env :
58+ - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7 CPP14=1"
6259
6360before_script :
64- - export CXX=${COMPILER}
65-
61+ - eval "${MATRIX_EVAL}"
62+ - env
63+ - export CC_FOR_BUILD=$CC
64+ - export CXX_FOR_BUILD=$CXX
6665script :
66+ - cmake . -Dbrynet_BUILD_EXAMPLES=ON -Dbrynet_BUILD_TESTS=ON
6767 - make
68- - cd tests
69- - ctest -V
68+ - cd tests && ctest -V
Original file line number Diff line number Diff line change @@ -68,12 +68,10 @@ endif(brynet_BUILD_EXAMPLES)
6868
6969if (brynet_BUILD_TESTS)
7070 if (WIN32 )
71- if (MSVC_VERSION VERSION_GREATER 1910 )
71+ if (MSVC_VERSION VERSION_GREATER 1900 )
7272 add_subdirectory (tests )
7373 endif ()
7474 elseif (UNIX )
75- if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
76- add_subdirectory (tests )
77- endif ()
75+ add_subdirectory (tests )
7876 endif ()
7977endif (brynet_BUILD_TESTS )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ TEST_CASE("WaitGroup are computed", "[waitgroup]") {
1212
1313 wg->add (2 );
1414
15- std::atomic<int > upvalue = 0 ;
15+ std::atomic<int > upvalue = ATOMIC_VAR_INIT ( 1 ) ;
1616 auto a = std::thread ([&]() {
1717 upvalue++;
1818 wg->done ();
You can’t perform that action at this time.
0 commit comments