mirror of https://github.com/KLayout/klayout.git
Fixed main app unit test for non-qtbinding build.
This commit is contained in:
parent
ca9a6db8a5
commit
7c8c4ccf43
|
|
@ -60,6 +60,15 @@ class KLayoutMain_TestClass < TestBase
|
||||||
def test_4
|
def test_4
|
||||||
|
|
||||||
# Application class
|
# Application class
|
||||||
|
if !RBA.constants.find { |x| x == :QDialog }
|
||||||
|
|
||||||
|
out = `./klayout -b -r #{File.join(File.dirname(__FILE__), "test_app.rb")}`
|
||||||
|
assert_equal(out, "RBA::Application superclass Object\nMainWindow is not there\n")
|
||||||
|
|
||||||
|
out = `./klayout -z -nc -rx -r #{File.join(File.dirname(__FILE__), "test_app.rb")}`
|
||||||
|
assert_equal(out, "RBA::Application superclass Object\nMainWindow is there\n")
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
# QCoreApplication for (headless) mode
|
# QCoreApplication for (headless) mode
|
||||||
out = `./klayout -b -r #{File.join(File.dirname(__FILE__), "test_app.rb")}`
|
out = `./klayout -b -r #{File.join(File.dirname(__FILE__), "test_app.rb")}`
|
||||||
|
|
@ -71,6 +80,8 @@ class KLayoutMain_TestClass < TestBase
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
def test_5
|
def test_5
|
||||||
|
|
||||||
# Script variables
|
# Script variables
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue