mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-31 10:06:28 +02:00
WIP: fixed unit tests for Qt-less build.
This commit is contained in:
@@ -157,6 +157,7 @@ TEST(1)
|
||||
v = e.parse ("var a=A.new; a.push_ev(Enum.a); a.push_ev(Enum.new); a.push_ev(Enum.b); a.ev").execute ();
|
||||
EXPECT_EQ (v.to_string (), std::string ("a,#0,b"));
|
||||
|
||||
#if defined(HAVE_QT)
|
||||
v = e.parse ("var a=A.new; a.get_ef").execute ();
|
||||
EXPECT_EQ (v.to_string (), std::string (""));
|
||||
v = e.parse ("var a=A.new; a.set_ef(Enum.a); a.get_ef").execute ();
|
||||
@@ -204,6 +205,8 @@ TEST(1)
|
||||
v = e.parse ("var a=A.new; var ef=Enums.new(); a.mod_efref(ef, Enum.b); a.mod_efptr(ef, Enum.a); ef").execute ();
|
||||
EXPECT_EQ (v.to_string (), std::string ("a|b"));
|
||||
#endif
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
TEST(2)
|
||||
|
||||
@@ -87,7 +87,7 @@ PYMODTEST (import_QtXmlPatterns, "import_QtXmlPatterns.py")
|
||||
|
||||
#endif
|
||||
|
||||
#else
|
||||
#elif defined(HAVE_QT)
|
||||
|
||||
PYMODTEST (import_lay, "import_lay_noqt.py")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user