[LNT] r238972 - Our stats routines don't work on ints, do don't use them
Chris Matthews
cmatthews5 at apple.com
Wed Jun 3 14:01:43 PDT 2015
Author: cmatthews
Date: Wed Jun 3 16:01:43 2015
New Revision: 238972
URL: http://llvm.org/viewvc/llvm-project?rev=238972&view=rev
Log:
Our stats routines don't work on ints, do don't use them
Modified:
lnt/trunk/tests/server/reporting/analysis.py
Modified: lnt/trunk/tests/server/reporting/analysis.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tests/server/reporting/analysis.py?rev=238972&r1=238971&r2=238972&view=diff
==============================================================================
--- lnt/trunk/tests/server/reporting/analysis.py (original)
+++ lnt/trunk/tests/server/reporting/analysis.py Wed Jun 3 16:01:43 2015
@@ -121,32 +121,32 @@ class ComparisonResultTest(unittest.Test
def test_slower(self):
"""Test getting a simple regression."""
- slower = ComparisonResult(min, False, False, [10], [5])
+ slower = ComparisonResult(min, False, False, [10.], [5.])
self.assertEquals(slower.get_value_status(), REGRESSED)
self.assertTrue(slower.is_result_interesting())
def test_faster(self):
"""Test getting a simple improvement."""
- faster = ComparisonResult(min, False, False, [5], [10])
+ faster = ComparisonResult(min, False, False, [5.], [10.])
self.assertEquals(faster.get_value_status(), IMPROVED)
self.assertTrue(faster.is_result_interesting())
def test_really_faster(self):
"""Test getting a simple improvement."""
- faster = ComparisonResult(min, False, False, [5, 6], [10, 10, 10])
+ faster = ComparisonResult(min, False, False, [5., 6.], [10., 10., 10.])
self.assertEquals(faster.get_value_status(), IMPROVED)
self.assertTrue(faster.is_result_interesting())
def test_improved_status(self):
"""Test getting a test status improvement."""
- improved = ComparisonResult(min, False, True, [1], None)
+ improved = ComparisonResult(min, False, True, [1.], None)
self.assertEquals(improved.get_test_status(), IMPROVED)
def test_regressed_status(self):
"""Test getting a test status improvement."""
- improved = ComparisonResult(min, True, False, None, [10])
+ improved = ComparisonResult(min, True, False, None, [10.])
self.assertEquals(improved.get_test_status(), REGRESSED)
def test_keep_on_failing_status(self):
More information about the llvm-commits
mailing list