gem5 v24.1.0.1
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
LoggingFixture Class Reference

Temporarily redirects cerr to gtestLogOutput. More...

Inheritance diagram for LoggingFixture:

Public Member Functions

void SetUp () override
 
void TearDown () override
 

Private Attributes

std::streambuf * old
 Used to restore cerr's streambuf.
 

Detailed Description

Temporarily redirects cerr to gtestLogOutput.

Definition at line 38 of file logging.test.cc.

Member Function Documentation

◆ SetUp()

void LoggingFixture::SetUp ( )
inlineoverride

Definition at line 41 of file logging.test.cc.

References gem5::gtestLogOutput, and old.

◆ TearDown()

void LoggingFixture::TearDown ( )
inlineoverride

Definition at line 42 of file logging.test.cc.

References old.

Member Data Documentation

◆ old

std::streambuf* LoggingFixture::old
private

Used to restore cerr's streambuf.

Definition at line 46 of file logging.test.cc.

Referenced by SetUp(), and TearDown().


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

Generated on Mon Jan 13 2025 04:28:47 for gem5 by doxygen 1.9.8