Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Oct 11, 2022
1 parent 403dda1 commit e16e985
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/SDF_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -589,9 +589,9 @@ TEST(SDF, EmbeddedSpecNonExistent)
std::string result;

// Capture sdferr output
std::stringstream stderr_buffer;
std::stringstream stderrBuffer;
sdf::testing::RedirectConsoleStream redir(
sdf::Console::Instance()->GetMsgStream(), &stderr_buffer);
sdf::Console::Instance()->GetMsgStream(), &stderrBuffer);
#ifdef _WIN32
sdf::Console::Instance()->SetQuiet(false);
sdf::testing::ScopeExit revertSetQuiet(
Expand All @@ -602,16 +602,16 @@ TEST(SDF, EmbeddedSpecNonExistent)
#endif

result = sdf::SDF::EmbeddedSpec("unavailable.sdf", false);
EXPECT_NE(stderr_buffer.str().find("Unable to find SDF filename"),
EXPECT_NE(stderrBuffer.str().find("Unable to find SDF filename"),
std::string::npos);
EXPECT_NE(stderr_buffer.str().find("with version"), std::string::npos);
EXPECT_NE(stderrBuffer.str().find("with version"), std::string::npos);
EXPECT_TRUE(result.empty());

// clear the contents of the buffer
stderr_buffer.str("");
stderrBuffer.str("");

result = sdf::SDF::EmbeddedSpec("unavailable.sdf", true);
EXPECT_TRUE(stderr_buffer.str().empty());
EXPECT_TRUE(stderrBuffer.str().empty());
EXPECT_TRUE(result.empty());
}

Expand Down

0 comments on commit e16e985

Please sign in to comment.