fix verbosity handling issue in pair style tests

This commit is contained in:
Axel Kohlmeyer
2020-05-26 21:08:26 -04:00
parent 2e3f03f9ca
commit 7f699e9233

View File

@ -645,6 +645,7 @@ TEST(PairStyle, omp) {
::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 with /omp suffix\n"
@ -817,10 +818,10 @@ TEST(PairStyle, intel) {
char **argv = (char **)args;
int argc = sizeof(args)/sizeof(char *);
if (!verbose) ::testing::internal::CaptureStdout();
::testing::internal::CaptureStdout();
LAMMPS *lmp = init_lammps(argc,argv,test_config);
std::string output;
if (!verbose) output = ::testing::internal::GetCapturedStdout();
std::string output = ::testing::internal::GetCapturedStdout();
if (verbose) std::cout << output;
if (!lmp) {
std::cerr << "One or more prerequisite styles with /intel suffix\n"