[milter-manager-commit] milter-manager/milter-manager at 5f20f80 [master] test tool: Use test-unit-rr instead of RR directly

Back to archive index

Kenji Okimoto null+****@clear*****
Fri Jun 16 15:47:46 JST 2017


Kenji Okimoto	2017-06-16 15:47:46 +0900 (Fri, 16 Jun 2017)

  New Revision: 5f20f80036789605993862b3e83337174a50d9d5
  https://github.com/milter-manager/milter-manager/commit/5f20f80036789605993862b3e83337174a50d9d5

  Message:
    test tool: Use test-unit-rr instead of RR directly

  Modified files:
    test/tool/run-test.rb
    test/tool/test-log-analyzer.rb
    test/tool/test-report-graph-generator.rb
    test/tool/tool-test-utils.rb

  Modified: test/tool/run-test.rb (+1 -0)
===================================================================
--- test/tool/run-test.rb    2017-06-16 13:26:31 +0900 (97f3262)
+++ test/tool/run-test.rb    2017-06-16 15:47:46 +0900 (386eddd)
@@ -23,6 +23,7 @@ test_unit_dir = top + "binding" + "ruby" + "test-unit" + "lib"
 
 $LOAD_PATH.unshift(test_unit_dir.to_s)
 require 'test/unit'
+require 'test/unit/rr'
 
 $LOAD_PATH.unshift((top + "tool").to_s)
 

  Modified: test/tool/test-log-analyzer.rb (+0 -13)
===================================================================
--- test/tool/test-log-analyzer.rb    2017-06-16 13:26:31 +0900 (6bb6dba)
+++ test/tool/test-log-analyzer.rb    2017-06-16 15:47:46 +0900 (ee0be8a)
@@ -14,19 +14,6 @@
 # along with this library.  If not, see <http://www.gnu.org/licenses/>.
 
 class TestLogAnalyzer < Test::Unit::TestCase
-  include RR::Adapters::RRMethods
-
-  RR.trim_backtrace = true
-  setup :setup_rr
-  def setup_rr
-    RR.reset
-  end
-
-  def run_test
-    super
-    RR.verify
-  end
-
   def setup
     base = Pathname(__FILE__).dirname
     @data_dir = base + "fixtures"

  Modified: test/tool/test-report-graph-generator.rb (+0 -13)
===================================================================
--- test/tool/test-report-graph-generator.rb    2017-06-16 13:26:31 +0900 (a2bb7e6)
+++ test/tool/test-report-graph-generator.rb    2017-06-16 15:47:46 +0900 (b858d8b)
@@ -14,19 +14,6 @@
 # along with this library.  If not, see <http://www.gnu.org/licenses/>.
 
 class TestReportGraphGenerator < Test::Unit::TestCase
-  include RR::Adapters::RRMethods
-
-  RR.trim_backtrace = true
-  setup :setup_rr
-  def setup_rr
-    RR.reset
-  end
-
-  def run_test
-    super
-    RR.verify
-  end
-
   def setup
     base = Pathname(__FILE__).dirname
     @data_dir = base + "fixtures"

  Modified: test/tool/tool-test-utils.rb (+0 -3)
===================================================================
--- test/tool/tool-test-utils.rb    2017-06-16 13:26:31 +0900 (7c0091e)
+++ test/tool/tool-test-utils.rb    2017-06-16 15:47:46 +0900 (7248cdb)
@@ -18,9 +18,6 @@ require 'tempfile'
 require 'fileutils'
 require 'stringio'
 
-require 'rubygems'
-require 'rr'
-
 load 'milter-manager-log-analyzer'
 
 module RRD
-------------- next part --------------
An HTML attachment was scrubbed...
Télécharger 



More information about the milter-manager-commit mailing list
Back to archive index