bug 447999 - test_punycodeURIs.js fails on (SeaMonkey and Thunderbird) Mac 10.4 tinderbox, don't run test on 10.4, based on a comment by bz, r=ted FENNEC_M8
authorMarkus Stange <mstange@themasta.com>
Tue, 23 Sep 2008 21:18:57 +0200
changeset 19610 269af1ed7564
parent 19609 31f1081d9681
child 19611 eaab26598282
push idunknown
push userunknown
push dateunknown
reviewersted
bugs447999
milestone1.9.1b1pre
bug 447999 - test_punycodeURIs.js fails on (SeaMonkey and Thunderbird) Mac 10.4 tinderbox, don't run test on 10.4, based on a comment by bz, r=ted
uriloader/exthandler/tests/unit/test_punycodeURIs.js
--- a/uriloader/exthandler/tests/unit/test_punycodeURIs.js
+++ b/uriloader/exthandler/tests/unit/test_punycodeURIs.js
@@ -75,16 +75,27 @@ function checkFile() {
   // have to check for the argument mac gives us.
   if (data.substring(0, 7) != "-psn_0_")
     do_check_eq(data, kExpectedURI);
 
   do_test_finished();
 }
 
 function run_test() {
+  // don't run the test on Mac OS 10.4 - see bug 447999
+  const httpHandler =
+    Components.classes["@mozilla.org/network/protocol;1?name=http"]
+              .getService(Components.interfaces.nsIHttpProtocolHandler);
+  const oscpu = httpHandler.oscpu;
+  if (oscpu.match(/Mac OS X 10.4/)) {
+    dump("This test is not run on Mac OS 10.4 because it fails for unknown " +
+         "reasons. See bug 447999.\n");
+    return;
+  }
+
   // set up the uri to test with
   var ioService = Components.classes["@mozilla.org/network/io-service;1"].
     getService(Components.interfaces.nsIIOService);
 
   // set up the local handler object
   var localHandler = 
     Components.classes["@mozilla.org/uriloader/local-handler-app;1"].
     createInstance(Components.interfaces.nsILocalHandlerApp);