Close opened dump file.
authorKaj Tuomi <kaj.tuomi@siru.fi>
Thu, 19 May 2016 08:53:29 +0000 (11:53 +0300)
committerKaj Tuomi <kaj.tuomi@siru.fi>
Thu, 19 May 2016 08:53:29 +0000 (11:53 +0300)
passes/tests/test_autotb.cc

index 98cf7da749034fb0a00a502e376744bab795f994..cf01074eaf0fe5d84a5ad2dd2dfe0ee356ae0e0e 100644 (file)
@@ -305,6 +305,7 @@ static void autotest(std::ostream &f, RTLIL::Design *design, int num_iter)
        for (auto it = design->modules_.begin(); it != design->modules_.end(); ++it)
                if (!it->second->get_bool_attribute("\\gentb_skip"))
                        f << stringf("\t%s;\n", idy(it->first.str(), "test").c_str());
+       f << stringf("\t$fclose(file);\n");
        f << stringf("\t$finish;\n");
        f << stringf("end\n\n");