Bug 1186315 - Fix TestTuple error and add it into testing list. r=nfroyd
authorLiang-Heng Chen <xeonchen@mozilla.com>
Tue, 21 Jul 2015 22:54:00 +0200
changeset 254304 b8d485bbedce029217375a37f8d025818e786274
parent 254303 45f326aa8cd6d82874144ac2625a8acdef2244fd
child 254305 cd54ba9f7d534c67fbc6386b06e57b9068fec064
push id29099
push userryanvm@gmail.com
push dateThu, 23 Jul 2015 20:03:55 +0000
treeherdermozilla-central@cb8bdb8ffaef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnfroyd
bugs1186315
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1186315 - Fix TestTuple error and add it into testing list. r=nfroyd
mfbt/tests/TestTuple.cpp
testing/cppunittest.ini
--- a/mfbt/tests/TestTuple.cpp
+++ b/mfbt/tests/TestTuple.cpp
@@ -127,17 +127,17 @@ TestGet()
 }
 
 static bool
 TestMakeTuple()
 {
   auto tuple = MakeTuple(42, 0.5f, 'c');
   CHECK_TYPE(tuple, Tuple<int, float, char>);
   CHECK(Get<0>(tuple) == 42);
-  CHECK(Get<1>(tuple) == 1.0f);
+  CHECK(Get<1>(tuple) == 0.5f);
   CHECK(Get<2>(tuple) == 'c');
   return true;
 }
 
 static bool
 TestTie()
 {
   int i;
--- a/testing/cppunittest.ini
+++ b/testing/cppunittest.ini
@@ -74,16 +74,17 @@ support-files = TestStartupCacheTelemetr
 [TestStringAPI]
 [TestSyncRunnable]
 [TestTArray]
 skip-if = os == 'b2g' || os == 'android'  # Bug 1054251, 1171296
 [TestTXMgr]
 skip-if = os == 'b2g'  #Bug 919595
 [TestTextFormatter]
 [TestThreadUtils]
+[TestTuple]
 [TestTypeTraits]
 [TestTypedEnum]
 [TestUDPSocket]
 [TestUniquePtr]
 [TestVolatileBuffer]
 [TestWeakPtr]
 [TestWebGLElementArrayCache]
 [buffered_stun_socket_unittest]