Merge pull request #1476 from KLayout/issue-1474

Fixing issue-1474 (throw a FATAL ERROR when multiple cellname have th…
This commit is contained in:
Matthias Köfferlein
2023-09-12 07:22:37 +02:00
committed by GitHub
2 changed files with 19 additions and 4 deletions
@@ -584,3 +584,18 @@ TEST(Bug_121_2)
std::string fn_au (tl::testdata () + "/oasis/bug_121_au2.gds");
db::compare_layouts (_this, layout, fn_au, db::WriteGDS2, 1);
}
TEST(Bug_1474)
{
db::Manager m (false);
db::Layout layout (&m);
try {
tl::InputStream file (tl::testdata_private () + "/oasis/issue_1474.oas");
db::OASISReader reader (file);
reader.read (layout);
EXPECT_EQ (false, true);
} catch (tl::Exception &ex) {
EXPECT_EQ (ex.msg (), "Cell named ADDHX2 with ID 4 was already given name SEDFFTRX2 (position=763169, cell=)");
}
}