diff --git a/toolkit/components/downloads/test/unit/test_download_manager.js b/toolkit/components/downloads/test/unit/test_download_manager.js index 1a72e2b906a..b673c4db990 100644 --- a/toolkit/components/downloads/test/unit/test_download_manager.js +++ b/toolkit/components/downloads/test/unit/test_download_manager.js @@ -46,7 +46,8 @@ function cleanup() // removing database var dbFile = dirSvc.get("ProfD", Ci.nsIFile); dbFile.append("downloads.sqlite"); - if (dbFile.exists()) dbFile.remove(true); + if (dbFile.exists()) + try { dbFile.remove(true); } catch(e) { /* stupid windows box */ } // removing downloaded file var destFile = dirSvc.get("ProfD", Ci.nsIFile); diff --git a/toolkit/components/downloads/test/unit/test_download_manager_migration.js b/toolkit/components/downloads/test/unit/test_download_manager_migration.js index feae577a520..ec16746f742 100644 --- a/toolkit/components/downloads/test/unit/test_download_manager_migration.js +++ b/toolkit/components/downloads/test/unit/test_download_manager_migration.js @@ -48,7 +48,8 @@ function cleanup() // removing database var dbFile = dirSvc.get("ProfD", Ci.nsIFile); dbFile.append("downloads.sqlite"); - if (dbFile.exists()) dbFile.remove(true); + if (dbFile.exists()) + try { dbFile.remove(true); } catch(e) { /* stupid windows box */ } } cleanup();