Bug 953296 - Properly condition function-deleter tests on SHOULD_TEST_FUNCTION_REFERENCE_DELETER. r=bustage
authorJeff Walden <jwalden@mit.edu>
Tue, 08 Jul 2014 11:37:45 -0700
changeset 192962 8bba4906704962bdfc84aec1f5fbd3f7d0505fcf
parent 192961 b140663e36819c718f42671f796e6fa4d5cc89ab
child 192963 8b8883e3b8b875dbf5cc9314ac343b596b293c3e
push id27103
push usercbook@mozilla.com
push dateWed, 09 Jul 2014 13:55:18 +0000
treeherdermozilla-central@f945d50e50fc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs953296
milestone33.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 953296 - Properly condition function-deleter tests on SHOULD_TEST_FUNCTION_REFERENCE_DELETER. r=bustage
mfbt/tests/TestUniquePtr.cpp
--- a/mfbt/tests/TestUniquePtr.cpp
+++ b/mfbt/tests/TestUniquePtr.cpp
@@ -590,17 +590,19 @@ int
 main()
 {
   if (!TestDefaultFree())
     return 1;
   if (!TestFreeClass())
     return 1;
   if (!TestReferenceDeleter())
     return 1;
+#if SHOULD_TEST_FUNCTION_REFERENCE_DELETER
   if (!TestFunctionReferenceDeleter())
     return 1;
+#endif
   if (!TestVector())
     return 1;
   if (!TestArray())
     return 1;
   if (!TestMakeUnique())
     return 1;
 }