2024-03-08 00:27:20 +01:00
|
|
|
require_relative "../setup"
|
|
|
|
module BSD::Control
|
|
|
|
class FeatureBangTest < Test::Unit::TestCase
|
|
|
|
def test_mprotect_feature
|
|
|
|
assert_instance_of BSD::Control::Feature,
|
2024-03-08 05:23:16 +01:00
|
|
|
BSD::Control.feature(:mprotect)
|
2024-03-08 00:27:20 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def test_nonexistent_feature
|
|
|
|
assert_raises(BSD::Control::Error) do
|
2024-03-08 05:23:16 +01:00
|
|
|
BSD::Control.feature(:non_existent_feature)
|
2024-03-08 00:27:20 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|