File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,11 +121,8 @@ target_link_system_libraries(lib2 PRIVATE fmt::fmt Eigen3::Eigen)
121121target_link_system_libraries (lib2 PRIVATE mythirdpartylib )
122122
123123add_test_config (common
124- DEPENDENCIES_CONFIG
125- ut
126-
127- SYSTEM_LIBRARIES
128- Boost::ut
124+ COMPILE_DEFINITIONS
125+ EXPECTED_RESULT=0
129126)
130127
131128add_library_test (lib lib CONFIGS common SOURCES tests/mylib/lib.cpp )
Original file line number Diff line number Diff line change 11#include " mylib/lib.hpp"
22
3- #include < boost/ut.hpp>
4-
5- int main () { // NOLINT(bugprone-exception-escape)
6- using namespace boost ::ut; // NOLINT(*using-namespace*)
7-
8- " lib" _test = []() { expect (some_fun () == 0 ); };
3+ int main () { // NOLINT(bugprone-exception-escape)
4+ return some_fun () == EXPECTED_RESULT ? 0 : 1 ;
95}
Original file line number Diff line number Diff line change 11#include " mylib2/lib.hpp"
22
3- #include < boost/ut.hpp>
4-
5- int main () { // NOLINT(bugprone-exception-escape)
6- using namespace boost ::ut; // NOLINT(*using-namespace*)
7-
8- " lib" _test = []() { expect (some_fun2 () == 0 ); };
3+ int main () { // NOLINT(bugprone-exception-escape)
4+ return some_fun2 () == EXPECTED_RESULT ? 0 : 1 ;
95}
Original file line number Diff line number Diff line change 1111 {
1212 "name" : " fmt" ,
1313 "version>=" : " 9.1.0#1"
14- },
15- {
16- "name" : " bext-ut" ,
17- "version>=" : " 1.1.9"
1814 }
1915 ]
2016}
You can’t perform that action at this time.
0 commit comments