Gromacs  5.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Attributes | Protected Member Functions
gmx::test::IntegrationTestFixture Class Reference

#include <testutils/integrationtests.h>

+ Inheritance diagram for gmx::test::IntegrationTestFixture:
+ Collaboration diagram for gmx::test::IntegrationTestFixture:

Description

Test fixture for integration tests.

Any method in this class may throw std::bad_alloc if out of memory.

Public Attributes

::gmx::test::TestFileManager fileManager_
 Object that manages finding input files, writing temporary output files and cleaning up files.
 

Protected Member Functions

void redirectStringToStdin (const char *theString)
 Accepts a string as input, writes it to a temporary file and then reopens stdin to read the contents of that string. More...
 
void redirectStdoutToDevNull ()
 Discards stdout while running a test. More...
 
void redirectStderrToDevNull ()
 Discards stderr while running a test. More...
 

Member Function Documentation

void gmx::test::IntegrationTestFixture::redirectStderrToDevNull ( )
protected

Discards stderr while running a test.

Todo:
Implement this when the output routines are sufficiently modular to permit it to work.
void gmx::test::IntegrationTestFixture::redirectStdoutToDevNull ( )
protected

Discards stdout while running a test.

Todo:
Implement this when the output routines are sufficiently modular to permit it to work.
void gmx::test::IntegrationTestFixture::redirectStringToStdin ( const char *  theString)
protected

Accepts a string as input, writes it to a temporary file and then reopens stdin to read the contents of that string.

Exceptions
FileIOErrorwhen the freopen() fails

The documentation for this class was generated from the following files: