summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_settracefunc.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb
index 264b805127..e7c010aaaf 100644
--- a/test/ruby/test_settracefunc.rb
+++ b/test/ruby/test_settracefunc.rb
@@ -919,4 +919,18 @@ class TestSetTraceFunc < Test::Unit::TestCase
assert_equal([:b_call, :b_return], ary, bug_7668)
end
end
+
+ def test_trace_point_enable_safe4
+ tp = TracePoint.new {}
+ assert_security_error_safe4 do
+ tp.enable
+ end
+ end
+
+ def test_trace_point_disable_safe4
+ tp = TracePoint.new {}
+ assert_security_error_safe4 do
+ tp.disable
+ end
+ end
end