rem: var file = Cc["@mozilla.org/file/directory_service;1"]. getService(Ci.nsIProperties).get("CurWorkD", Ci.nsIFile); 
add: var file = Cc["@mozilla.org/file/local;1"] .createInstance(Ci.nsILocalFile); file.initWithPath(do_get_topsrcdir()); file.append("modules"); file.append("libjar"); file.append("test"); file.append("unit"); file.append("data"); 
context: function run_test() {  const Cc = Components.classes;  const Ci = Components.interfaces;  // the build script have created the zip we can test on in the current dir.  var file = Cc["@mozilla.org/file/directory_service;1"].              getService(Ci.nsIProperties).get("CurWorkD", Ci.nsIFile);  file.append("test_bug333423.zip")  dump("Using " + file.path + " for testing\n");  var zipreader = Cc["@mozilla.org/libjar/zip-reader;1"].                  createInstance(Ci.nsIZipReader);  zipreader.open(file);  zipreader.close();  var entries = zipreader.findEntries('*.*');  do_check_true(!entries.hasMore()); // this shouldn't crash}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/7eeed473b4be37d71045e355c99e7e50aad6fa95/test_bug333423.js/buggy/modules/libjar/test/unit/test_bug333423.js