test/safely_test.rb in openwferu-0.9.12 vs test/safely_test.rb in openwferu-0.9.12.863

- old
+ new

@@ -6,11 +6,10 @@ # require 'tempfile' require 'test/unit' -#require 'openwfe/utils' require 'openwfe/util/safe' class SafelyTest < Test::Unit::TestCase @@ -26,9 +25,15 @@ # assert_nil dotest("print ''", 2) # assert_nil dotest2("print ''", 2) #end def test_safely_1 + + if OpenWFE::on_jruby? + puts + puts "skipping safe tests as JRuby doesn't support $SAFE levels..." + return + end assert_not_nil dotest3(STDOUT, "self.print ''", 4) assert_nil dotest3(STDOUT, "self.print ''", 2) assert_not_nil dotest3(nil, "print ''", 4)