summaryrefslogtreecommitdiff
path: root/xpcom/tests/unit/test_bug332389.js
blob: 91f8943e876e229059eba021f591e1f6201c19ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var Cc = Components.classes;
var Ci = Components.interfaces;

function run_test() {
  var f =
      Cc["@mozilla.org/file/directory_service;1"].
      getService(Ci.nsIProperties).get("CurProcD", Ci.nsIFile);

  var terminated = false;
  for (var i = 0; i < 100; i++) {
    if (f == null) {
      terminated = true;
      break;
    }
    f = f.parent;
  }

  do_check_true(terminated);
}