summaryrefslogtreecommitdiffstats
path: root/xpcom/tests/unit/test_bug332389.js
blob: 605772f12a2f43d6847ef53a018215009db61c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function run_test() {
  var f = Services.dirsvc.get("CurProcD", Ci.nsIFile);

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

  Assert.ok(terminated);
}