mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
remove busted unit test
git-svn-id: file:///home/svn/framework3/trunk@7482 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
0d8eaa9190
commit
8c28c38da3
@ -1,23 +0,0 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
|
||||
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..', 'dev', 'machinetest'))
|
||||
|
||||
require 'machinetest'
|
||||
require 'test/unit'
|
||||
require 'rex/encoders/xor_dword'
|
||||
|
||||
class Rex::Encoders::XorDword::UnitTest < ::Test::Unit::TestCase
|
||||
Klass = Rex::Encoders::XorDword
|
||||
def klass
|
||||
self.class::Klass
|
||||
end
|
||||
|
||||
def test_encode
|
||||
1000.times {
|
||||
buffer = ""
|
||||
rand(5000).times { buffer << 0x90 }
|
||||
assert_equal(nil, MachineTest.testraw(klass.encode(buffer + "\xcc")))
|
||||
}
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user