Update spec to fit Ubuntu 20.04 (#162)
This commit is contained in:
parent
036e8f0c3d
commit
2efaaccc2e
|
@ -40,8 +40,9 @@ describe 'one_gadget_amd64' do
|
|||
end
|
||||
|
||||
it 'not glibc' do
|
||||
expect { hook_logger { OneGadget.gadgets(file: '/bin/ls') } }.to output(<<-EOS).to_stdout
|
||||
[OneGadget] ArgumentError: File "/bin/ls" doesn't contain string "/bin/sh", not glibc?
|
||||
realpath = `which ls`.strip
|
||||
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
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue