From 77f0197f8a4552f4a42ff40c08843bd3a4fb0444 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Wed, 13 Jun 2018 00:43:54 +0200 Subject: [PATCH] WIP: fixed test framework. --- src/db/db/dbTestSupport.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/db/db/dbTestSupport.cc b/src/db/db/dbTestSupport.cc index 71a78af10..534771d3b 100644 --- a/src/db/db/dbTestSupport.cc +++ b/src/db/db/dbTestSupport.cc @@ -62,9 +62,11 @@ void compare_layouts (tl::TestBase *_this, const db::Layout &layout, const std:: options.set_format ("OASIS"); } - tl::OutputStream stream (tmp_file.c_str ()); - db::Writer writer (options); - writer.write (const_cast (layout), stream); + { + tl::OutputStream stream (tmp_file.c_str ()); + db::Writer writer (options); + writer.write (const_cast (layout), stream); + } const db::Layout *subject = 0; db::Layout layout2;