Check the existence of the test classes

This commit is contained in:
aycabta 2021-08-03 01:19:29 +09:00
parent 5ca0a51ffd
commit 17ef7a98ef
Notes: git 2021-08-04 18:30:13 +09:00

View file

@ -481,9 +481,9 @@ module BasetestReadline
require 'readline' require 'readline'
require 'test/readline/helper' require 'test/readline/helper'
#{ #{
if self.class == TestReadline if defined?(TestReadline) && self.class == TestReadline
"use_ext_readline" "use_ext_readline"
elsif self.class == TestRelineAsReadline elsif defined?(TestRelineAsReadline) && self.class == TestRelineAsReadline
"use_lib_reline" "use_lib_reline"
end end
} }