bsdcontrol.rb/test/unprivileged/sysdef_feature_test.rb
2024-05-12 22:44:29 -03:00

12 lines
284 B
Ruby

# frozen_string_literal: true
require_relative "../setup"
module BSD::Control
class SysDefTest < BSD::Control::Test
def test_sysdef!_insufficient_permissions
assert_raises(Errno::EPERM) do
BSD::Control.feature(:pageexec).sysdef!(file)
end
end
end
end