summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-02 23:36:22 +0100
committerAndreas Stöckel <andreas@somweyr.de>2015-01-02 23:36:22 +0100
commit536e00e422d89176b973daf325ee10da86c0170a (patch)
treec449c74dee6beb3e5d31649a2088b3acca2543ed
parentfffca72cfd8fdf1350dbe4bf8a5408f6088bf5b4 (diff)
autoformat
-rw-r--r--test/core/model/TypesystemTest.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/test/core/model/TypesystemTest.cpp b/test/core/model/TypesystemTest.cpp
index 29ab5ec..24487e1 100644
--- a/test/core/model/TypesystemTest.cpp
+++ b/test/core/model/TypesystemTest.cpp
@@ -497,14 +497,18 @@ TEST(StructType, createValidated)
{
logger.reset();
- Rooted<StructType> structType{StructType::createValidated(
- mgr, "struct", nullptr, nullptr,
- NodeVector<Attribute>{
- new Attribute{mgr, "d", stringType, "attr1default"},
- new Attribute{mgr, "b", stringType},
- new Attribute{mgr, "a", intType, 3},
- new Attribute{mgr, "a", intType}},
- logger)};
+ try {
+ Rooted<StructType> structType{StructType::createValidated(
+ mgr, "struct", nullptr, nullptr,
+ NodeVector<Attribute>{
+ new Attribute{mgr, "d", stringType, "attr1default"},
+ new Attribute{mgr, "b", stringType},
+ new Attribute{mgr, "a", intType, 3},
+ new Attribute{mgr, "a", intType}},
+ logger)};
+ } catch (LoggableException ex) {
+ logger.log(ex);
+ }
ASSERT_EQ(Severity::ERROR, logger.getMaxEncounteredSeverity());
}