Added ignore to the eval grep tests.

This commit is contained in:
Wade Alcorn
2011-12-30 21:54:43 +10:00
parent 04f14df92d
commit 999802ad69

View File

@@ -21,6 +21,7 @@ class TC_Grep < Test::Unit::TestCase
Dir['../../**/*.rb'].each do |path|
File.open( path ) do |f|
next if /tc_grep.rb/.match(path) # skip this file
next if /\/msf-test\//.match(path) # skip this file
f.grep( /\Weval\W/im ) do |line|
assert(false, "Illegal use of 'eval' in framework: " + path + ':' + line)
end