properly honor verbose/no-verbose run flag

This commit is contained in:
Axel Kohlmeyer
2020-05-21 00:48:05 -04:00
parent 4eca3c46a6
commit f9e57392f3
3 changed files with 5 additions and 1 deletions

View File

@ -353,6 +353,7 @@ TEST(AngleStyle, plain) {
::testing::internal::CaptureStdout();
LAMMPS *lmp = init_lammps(argc,argv,test_config,true);
std::string output = ::testing::internal::GetCapturedStdout();
if (verbose) std::cout << output;
if (!lmp) {
std::cerr << "One or more prerequisite styles are not available "