Compatibility with Ruby 1.8.7 (main app test), tests fixed for CentOS6

This commit is contained in:
Matthias Koefferlein
2018-05-02 07:32:20 +02:00
parent 99acbd03d6
commit 74cc8eea07
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ class KLayoutMain_TestClass < TestBase
def test_4
# Application class
if !RBA.constants.find { |x| x == :QDialog }
if !RBA.constants.find { |x| x == :QDialog || 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")