Skip to content

Commit

Permalink
Making use of dedicated ASSERT_NO_THROW macro
Browse files Browse the repository at this point in the history
  • Loading branch information
codemercenary committed Aug 5, 2014
1 parent 165f475 commit 99fc032
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/autowiring/test/AutoFilterTest.cpp
Expand Up @@ -1068,20 +1068,12 @@ TEST_F(AutoFilterTest, AutoSelfUpdateTwoContexts) {
AutoCreateContext contextA;
{
CurrentContextPusher pusher(contextA);
try {
AutoRequired<AutoSelfUpdate<Decoration<0>>> filter;
} catch (...) {
FAIL() << "Failed to create AutoSelfUpdate in contextA";
}
ASSERT_NO_THROW(AutoRequired<AutoSelfUpdate<Decoration<0>>>()) << "Failed to create AutoSelfUpdate in contextA";
}

AutoCreateContext contextB;
{
CurrentContextPusher pusher(contextB);
try {
AutoRequired<AutoSelfUpdate<Decoration<0>>> filter;
} catch (...) {
FAIL() << "Failed to create AutoSelfUpdate in contextB";
}
ASSERT_NO_THROW(AutoRequired<AutoSelfUpdate<Decoration<0>>>()) << "Failed to create AutoSelfUpdate in contextB";
}
}

0 comments on commit 99fc032

Please sign in to comment.