From 63f6abf7342f9138d9fa5076d1f0fccd6b538e4c Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 10 Jun 2023 09:17:00 +0200 Subject: [PATCH] Fixed a unit test failing in non-editable mode --- src/db/db/gsiDeclDbLayoutDiff.cc | 11 +++++++++++ src/db/unit_tests/dbShapesTests.cc | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/db/db/gsiDeclDbLayoutDiff.cc b/src/db/db/gsiDeclDbLayoutDiff.cc index 1d50c6857..1ed1335ca 100644 --- a/src/db/db/gsiDeclDbLayoutDiff.cc +++ b/src/db/db/gsiDeclDbLayoutDiff.cc @@ -397,6 +397,10 @@ static unsigned int f_silent () { return db::layout_diff::f_silent; } +static unsigned int f_ignore_duplicates () { + return db::layout_diff::f_ignore_duplicates; +} + static unsigned int f_no_text_orientation () { return db::layout_diff::f_no_text_orientation; } @@ -448,6 +452,13 @@ gsi::Class decl_LayoutDiff ("db", "LayoutDiff", "This constant can be used for the flags parameter of \\compare_layouts and \\compare_cells. It can be " "compared with other constants to form a flag set." ) + + gsi::constant ("IgnoreDuplicates", &f_ignore_duplicates, + "@brief Ignore duplicate instances or shapes\n" + "With this option present, duplicate instances or shapes are ignored and " + "duplication does not count as a difference.\n" + "\n" + "This option has been introduced in version 0.28.9." + ) + gsi::constant ("NoTextOrientation", &f_no_text_orientation, "@brief Ignore text orientation\n" "This constant can be used for the flags parameter of \\compare_layouts and \\compare_cells. It can be " diff --git a/src/db/unit_tests/dbShapesTests.cc b/src/db/unit_tests/dbShapesTests.cc index 1648f0885..b18e02bf3 100644 --- a/src/db/unit_tests/dbShapesTests.cc +++ b/src/db/unit_tests/dbShapesTests.cc @@ -1930,7 +1930,7 @@ TEST(8) { db::Manager m (true); - db::Layout layout (&m); + db::Layout layout (true, &m); unsigned int lindex1 = layout.insert_layer (); unsigned int lindex2 = layout.insert_layer ();