Stop test_punycodeURIs.js hanging when the test is actually failing. Part of bug 561350. r=ted (test-only change)
authorMark Banner <bugzilla@standard8.plus.com>
Thu, 06 May 2010 10:33:49 +0100
changeset 41964 014349e11696822af46b455ec7030ded93795770
parent 41963 41c2eb76d3a444a46f7e0574f78e7c598257474a
child 41989 ee0ba861b40953358d7b74782291927049a9e526
push id13161
push userbugzilla@standard8.plus.com
push dateThu, 06 May 2010 09:34:19 +0000
treeherdermozilla-central@014349e11696 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs561350
milestone1.9.3a5pre
first release with
nightly linux32
014349e11696 / 3.7a5pre / 20100506032538 / files
nightly linux64
014349e11696 / 3.7a5pre / 20100506030650 / files
nightly mac
014349e11696 / 3.7a5pre / 20100506030635 / files
nightly win32
014349e11696 / 3.7a5pre / 20100506040636 / files
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
Stop test_punycodeURIs.js hanging when the test is actually failing. Part of bug 561350. r=ted (test-only change)
uriloader/exthandler/tests/unit/test_punycodeURIs.js
--- a/uriloader/exthandler/tests/unit/test_punycodeURIs.js
+++ b/uriloader/exthandler/tests/unit/test_punycodeURIs.js
@@ -50,16 +50,17 @@ function checkFile() {
   tempFile.append(kOutputFile);
 
   if (!tempFile.exists()) {
     if (gCheckExistsAttempts >= kMaxCheckExistAttempts) {
       do_throw("Expected File " + tempFile.path + " does not exist after " +
                  kMaxCheckExistAttempts + " seconds");
     }
     else {
+      ++gCheckExistsAttempts;
       // Wait a bit longer then try again
       do_timeout(1000, checkFile);
     }
   }
 
   // Now read it
   var fstream =
     Components.classes["@mozilla.org/network/file-input-stream;1"]