mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
this test still takes forever
git-svn-id: file:///home/svn/incoming/trunk@2613 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
8411dacaa3
commit
b458d7155d
@ -9,11 +9,15 @@ require 'Rex/Encoders/XorDWord'
|
||||
|
||||
class Rex::Encoders::XorDWord::UnitTest < ::Test::Unit::TestCase
|
||||
Klass = Rex::Encoders::XorDWord
|
||||
def klass
|
||||
self.class::Klass
|
||||
end
|
||||
|
||||
def test_encode
|
||||
2000.times {
|
||||
1000.times {
|
||||
buffer = ""
|
||||
rand(1000).times { buffer << 0x90 }
|
||||
assert_equal(nil, MachineTest.testraw(Klass.encode(buffer + "\xcc")))
|
||||
rand(5000).times { buffer << 0x90 }
|
||||
assert_equal(nil, MachineTest.testraw(klass.encode(buffer + "\xcc")))
|
||||
}
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user