Add the test since it'll work now
This commit is contained in:
@@ -54,15 +54,10 @@ RSpec.describe 'PE template binaries' do
|
|||||||
expect(actual).to eq([expected_major, expected_minor])
|
expect(actual).to eq([expected_major, expected_minor])
|
||||||
end
|
end
|
||||||
|
|
||||||
# The PE32+ optional header struct in rex-bin_tools 0.1.15 has a typo:
|
it "has OS version #{expected_major}.#{expected_minor}" do
|
||||||
# `MajorOperatingsystemVersion` (lowercase 's') instead of
|
actual = [pe.hdr.opt.MajorOperatingSystemVersion, pe.hdr.opt.MinorOperatingSystemVersion]
|
||||||
# `MajorOperatingSystemVersion`. That makes field access inconsistent
|
expect(actual).to eq([expected_major, expected_minor])
|
||||||
# between PE32 and PE32+ binaries, so the OS version check is disabled
|
end
|
||||||
# until the upstream struct is fixed.
|
|
||||||
# it "has OS version #{expected_major}.#{expected_minor}" do
|
|
||||||
# actual = [pe.hdr.opt.MajorOperatingSystemVersion, pe.hdr.opt.MinorOperatingSystemVersion]
|
|
||||||
# expect(actual).to eq([expected_major, expected_minor])
|
|
||||||
# end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user