Fixing tests for non-Qt builds

This commit is contained in:
Matthias Koefferlein 2025-09-07 00:03:42 +02:00
parent cd34125b0c
commit 7997d1375c
1 changed files with 123 additions and 112 deletions

View File

@ -37,6 +37,9 @@ class PluginFactory < RBA::PluginFactory
end
end
has_qt = RBA.constants.member?(:EditorOptionsPage) && RBA.constants.member?(:MainWindow)
if has_qt
class Plugin2EditorOptionsPage < RBA::EditorOptionsPage
def initialize
super("title", 1)
@ -174,5 +177,13 @@ class LayPlugin_TestClass < TestBase
end
else
# at least one test is needed
class LayPlugin_TestClass < TestBase
end
end
load("test_epilogue.rb")