Check log output in thread affinity tests
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 3 Jun 2016 03:31:22 +0000 (06:31 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Fri, 10 Feb 2017 05:35:59 +0000 (07:35 +0200)
commit0f6d05ecaadc004d21f4173bc22e223382ea24f5
tree5aef54aa6400b192f10f1d2de02488d47602b082
parentd609d53df471fd8633ae578c906d8594c886e790
Check log output in thread affinity tests

Use the ability to redirect the logging to actually check that the
correct warnings get produced for the tests.  For now, most expected
texts are partially duplicated in each test that produces them, but
these can be centralized if it becomes a problem.

All regular output from thread affinity setting now goes through mdlog,
except for one to stderr.

Change-Id: I603e838693b6593d116fb2597eda7f1bf97c9454
src/gromacs/mdrunutility/tests/threadaffinity-mpi.cpp
src/gromacs/mdrunutility/tests/threadaffinity.cpp
src/gromacs/mdrunutility/tests/threadaffinitytest.h
src/gromacs/mdrunutility/threadaffinity.cpp
src/gromacs/mdrunutility/threadaffinity.h
src/programs/mdrun/runner.cpp
src/testutils/CMakeLists.txt
src/testutils/loggertest.cpp [new file with mode: 0644]
src/testutils/loggertest.h [new file with mode: 0644]