Land #10411, Fix rspec due to missing __attribute__

This commit is contained in:
Brent Cook 2018-08-01 12:46:07 -05:00
commit 698b403ff9
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
1 changed files with 1 additions and 1 deletions

View File

@ -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