From 7e1c72a5a5d5dc890a49f79c5daec3edcb38a33b Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 4 Jan 2015 22:21:27 +0100 Subject: temporarily exporting dot files in typesystem test --- test/core/model/TypesystemTest.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/core/model/TypesystemTest.cpp b/test/core/model/TypesystemTest.cpp index ff42fe5..72762e5 100644 --- a/test/core/model/TypesystemTest.cpp +++ b/test/core/model/TypesystemTest.cpp @@ -515,10 +515,14 @@ TEST(StructType, creation) TEST(StructType, creationWithParent) { - Manager mgr; + Manager mgr{1}; Rooted structType = createStructType(mgr, logger); + { Rooted structWithParentType = createStructTypeWithParent(structType, mgr, logger); +#ifdef MANAGER_GRAPHVIZ_EXPORT + mgr.exportGraphviz("structTypeTest1.dot"); +#endif Variant val = structWithParentType->create(); ASSERT_TRUE(val.isArray()); @@ -539,6 +543,10 @@ TEST(StructType, creationWithParent) ASSERT_EQ(0, arr[3].asInt()); ASSERT_EQ("value1", arr[4].asString()); ASSERT_EQ(42, arr[5].asInt()); + } +#ifdef MANAGER_GRAPHVIZ_EXPORT + mgr.exportGraphviz("structTypeTest2.dot"); +#endif } TEST(StructType, derivedFrom) -- cgit v1.2.3