Update spec to fit Ubuntu 20.04 (#162)

This commit is contained in:
david942j 2021-02-16 22:00:23 +08:00 committed by GitHub
parent 036e8f0c3d
commit 2efaaccc2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -40,8 +40,9 @@ describe 'one_gadget_amd64' do
end end
it 'not glibc' do it 'not glibc' do
expect { hook_logger { OneGadget.gadgets(file: '/bin/ls') } }.to output(<<-EOS).to_stdout realpath = `which ls`.strip
[OneGadget] ArgumentError: File "/bin/ls" doesn't contain string "/bin/sh", not glibc? expect { hook_logger { OneGadget.gadgets(file: realpath) } }.to output(<<-EOS).to_stdout
[OneGadget] ArgumentError: File "#{realpath}" doesn't contain string "/bin/sh", not glibc?
EOS EOS
end end
end end