summaryrefslogtreecommitdiffstats
path: root/xpcom/tests/unit/test_bug332389.js
blob: cf7d9bdb972c8ad8601a874249e81bbee9924d1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");

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);
}