Skip to content
Snippets Groups Projects
Commit 97e79e3b authored by Christoph Lehmann's avatar Christoph Lehmann
Browse files

[T] fixed test

parent dd67f1cc
No related branches found
No related tags found
No related merge requests found
......@@ -398,13 +398,13 @@ TEST(BaseLibConfigTree, GetParamList)
EXPECT_ERR_WARN(cbs, false, true); // attribute "a" not read
{
// get list of parameters, i.e., subtrees without children
auto range = conf.getConfigParameterList("int3");
EXPECT_ERR_WARN(cbs, false, false);
EXPECT_ANY_THROW(*range.begin());
// Error because of child tag, raises exception, thus
// a temporary ConfigTree gets destroyed producing a warning.
EXPECT_ERR_WARN(cbs, true, true);
// error because of child tag <error/>
EXPECT_ERR_WARN(cbs, true, false);
} // range destroyed here
EXPECT_ERR_WARN(cbs, false, false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment