aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2012-09-09 00:14:31 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2012-09-09 00:14:31 +0100
commitc7e1dfb2b57d8f50760651cf20da595f768b3f96 (patch)
treef166f3f109266d2e81fbd83027b93d78a3ba66b2
parent6036f1ab13f0736ab6d7b181ff7a44d7fec19634 (diff)
downloadpaludis-c7e1dfb2b57d8f50760651cf20da595f768b3f96.tar.gz
paludis-c7e1dfb2b57d8f50760651cf20da595f768b3f96.tar.xz
Make test failure messages comprehensible
-rw-r--r--paludis/repositories/e/e_repository_TEST.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/paludis/repositories/e/e_repository_TEST.cc b/paludis/repositories/e/e_repository_TEST.cc
index b32bab4..2a69a60 100644
--- a/paludis/repositories/e/e_repository_TEST.cc
+++ b/paludis/repositories/e/e_repository_TEST.cc
@@ -487,11 +487,11 @@ namespace
void test_choice(const std::shared_ptr<const PackageID> & p, const std::string & n, bool enabled, bool enabled_by_default, bool locked, const std::string & u = "")
{
std::shared_ptr<const ChoiceValue> choice(p->choices_key()->parse_value()->find_by_name_with_prefix(ChoiceNameWithPrefix(n)));
- ASSERT_TRUE(bool(choice));
- EXPECT_EQ(choice->unprefixed_name(), UnprefixedChoiceName(u.empty() ? n : u));
- EXPECT_EQ(enabled, choice->enabled());
- EXPECT_EQ(enabled_by_default, choice->enabled_by_default());
- EXPECT_EQ(locked, choice->locked());
+ ASSERT_TRUE(bool(choice)) << "checking package '" << *p << "' choice '" << n << "'";
+ EXPECT_EQ(choice->unprefixed_name(), UnprefixedChoiceName(u.empty() ? n : u)) << "checking package '" << *p << "' choice '" << n << "'";
+ EXPECT_EQ(enabled, choice->enabled()) << "checking package '" << *p << "' choice '" << n << "'";
+ EXPECT_EQ(enabled_by_default, choice->enabled_by_default()) << "checking package '" << *p << "' choice '" << n << "'";
+ EXPECT_EQ(locked, choice->locked()) << "checking package '" << *p << "' choice '" << n << "'";
}
};
}