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
|
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
|
||||||
|
|
Loading…
Reference in New Issue