2024-05-12 05:59:38 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-03-10 15:15:28 +01:00
|
|
|
require_relative "../setup"
|
|
|
|
module BSD::Control
|
2024-05-13 03:32:55 +02:00
|
|
|
class SysDefTest < BSD::Control::Test
|
|
|
|
def test_sysdef!_insufficient_permissions
|
2024-03-10 15:15:28 +01:00
|
|
|
assert_raises(Errno::EPERM) do
|
2024-03-20 20:25:20 +01:00
|
|
|
BSD::Control.feature(:pageexec).sysdef!(file)
|
2024-03-10 15:15:28 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|