Land #10411, Fix rspec due to missing __attribute__
This commit is contained in:
commit
698b403ff9
|
@ -29,7 +29,7 @@ RSpec.describe Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Fak
|
|||
describe '#to_s' do
|
||||
it 'converts function objects to a string' do
|
||||
str = subject.to_s
|
||||
expect(str).to match(/function\d+\s*\(.*\)\s*{.*}/)
|
||||
expect(str).to match(/function\d+\s*(__attribute__)*\s*\(.*\)\s*{.*}/)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue