Bug 549098: Work around expected asserts by disabling tests in debug builds. r=dbaron
authorJonas Sicking <jonas@sicking.cc>
Sat, 27 Feb 2010 13:15:51 -0800
changeset 38784 644d92ef8781bf653f3e55ec5566c8c52da44990
parent 38783 6d21a2262e8061e22f42a71dd97e5a04a9e8eecc
child 38786 6119cab79ff7a061b11506d7c5cbc18e4d7abb0f
push idunknown
push userunknown
push dateunknown
reviewersdbaron
bugs549098
milestone1.9.3a2pre
Bug 549098: Work around expected asserts by disabling tests in debug builds. r=dbaron
xpcom/tests/TestUTF.cpp
--- a/xpcom/tests/TestUTF.cpp
+++ b/xpcom/tests/TestUTF.cpp
@@ -147,17 +147,20 @@ static const struct Test
     const char* name;
     TestFunc    func;
   }
 tests[] =
   {
     { "test_valid", test_valid },
     { "test_invalid16", test_invalid16 },
     { "test_invalid8", test_invalid8 },
+#ifndef DEBUG
+    // Don't run this test in debug builds as that intentionally asserts
     { "test_malformed8", test_malformed8 },
+#endif
     { nsnull, nsnull }
   };
 
 }
 
 using namespace TestUTF;
 
 int main(int argc, char **argv)