Support inspecting expected error messages in tests
commit6cd17e00c057ec80a161a846ca8b73c15bf36cf7
authorTeemu Murtola <teemu.murtola@gmail.com>
Wed, 11 Nov 2015 04:44:26 +0000 (11 06:44 +0200)
committerTeemu Murtola <teemu.murtola@gmail.com>
Wed, 11 Nov 2015 05:15:02 +0000 (11 07:15 +0200)
tree875516bfb777fb5483230972ea07804db06b444b
parent9fdf03632cec57b00c76ab9b454b9bb4854bc900
Support inspecting expected error messages in tests

Add a command-line option --show-error-messages to test binaries.
When set, each test that uses EXPECT_THROW_GMX to test for expected
errors prints out the error message from the expected error, making it
possible to easily inspect it.

It is not (yet) easily possible to write a test that actually asserts
something about the message.

Change-Id: Iede88ae96f31d0545c9ba56d827b3c6a98ebd88d
src/testutils/testasserts.cpp
src/testutils/testasserts.h