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

13 lines
310 B
Ruby

# frozen_string_literal: true
require_relative "../setup"
module BSD::Control
class DisableFeatureTest < BSD::Control::Test
def test_disable_pageexec_nonexistent_file
rm(file)
assert_raises(Errno::ENOENT) do
BSD::Control.feature(:pageexec).disable!(file)
end
end
end
end