Skip to content

Commit

Permalink
gha
Browse files Browse the repository at this point in the history
  • Loading branch information
zajo committed Dec 10, 2023
1 parent bda3f5f commit 0474765
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/visibility_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int main()
BOOST_LEAF_CHECK(hidden_result());
return 0;
},
[]( my_info<1> x1, my_info<2> x2, leaf::diagnostic_info const & info, leaf::verbose_diagnostic_info const & vinfo )
[]( my_info<1> x1, my_info<2> x2, leaf::verbose_diagnostic_info const & info, leaf::verbose_diagnostic_info const & vinfo )
{
BOOST_TEST_EQ(x1.value, 1);
BOOST_TEST_EQ(x2.value, 2);
Expand All @@ -43,7 +43,8 @@ int main()
std::ostringstream ss; ss << vinfo;
std::string s = ss.str();
std::cout << s << std::endl;
BOOST_TEST_NE(s.find("Test my_info<3>::value = 3"), std::string::npos);
if( BOOST_LEAF_CFG_DIAGNOSTICS && BOOST_LEAF_CFG_CAPTURE )
BOOST_TEST_NE(s.find("Test my_info<3>::value = 3"), std::string::npos);
#endif
}
return 1;
Expand All @@ -63,7 +64,7 @@ int main()
hidden_throw();
return 0;
},
[]( my_info<1> x1, my_info<2> x2, leaf::diagnostic_info const & info, leaf::verbose_diagnostic_info const & vinfo )
[]( my_info<1> x1, my_info<2> x2, leaf::verbose_diagnostic_info const & info, leaf::verbose_diagnostic_info const & vinfo )
{
BOOST_TEST_EQ(x1.value, 1);
BOOST_TEST_EQ(x2.value, 2);
Expand All @@ -73,7 +74,8 @@ int main()
std::ostringstream ss; ss << vinfo;
std::string s = ss.str();
std::cout << s << std::endl;
BOOST_TEST_NE(s.find("Test my_info<3>::value = 3"), std::string::npos);
if( BOOST_LEAF_CFG_DIAGNOSTICS && BOOST_LEAF_CFG_CAPTURE )
BOOST_TEST_NE(s.find("Test my_info<3>::value = 3"), std::string::npos);
#endif
}
return 1;
Expand Down

0 comments on commit 0474765

Please sign in to comment.