mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-22 14:07:15 +02:00
Merge pull request #1547 from KLayout/issue-1542
Issue 1542 - crash on exit
This commit is contained in:
Vendored
+12
@@ -191,6 +191,18 @@ class KLayoutMain_TestClass < TestBase
|
||||
|
||||
end
|
||||
|
||||
def test_12
|
||||
|
||||
# Application.exit(0) - Python
|
||||
out = `#{self.klayout_bin} -z -r #{File.join(File.dirname(__FILE__), "test12.py")} 2>&1`
|
||||
assert_equal(out, "Before exit()\n")
|
||||
|
||||
# Application.exit(0) - Ruby
|
||||
out = `#{self.klayout_bin} -z -r #{File.join(File.dirname(__FILE__), "test12.rb")} 2>&1`
|
||||
assert_equal(out, "Before exit()\n")
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
load("test_epilogue.rb")
|
||||
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
|
||||
print("Before exit()")
|
||||
pya.Application.instance().exit(0)
|
||||
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
|
||||
$stdout.puts("Before exit()")
|
||||
$stdout.flush
|
||||
RBA::Application::instance.exit(0)
|
||||
|
||||
Reference in New Issue
Block a user