From 8f2072977dce5d1dffc2f54c96e27dbb7d803abc Mon Sep 17 00:00:00 2001 From: Barret Rennie Date: Tue, 22 Nov 2022 20:25:07 +0000 Subject: [PATCH] Bug 1801448 - Port osfile.jsm usage to IOUtils in tools/ r=gregtatum Differential Revision: https://phabricator.services.mozilla.com/D162445 --- tools/profiler/tests/xpcshell/test_feature_fileioall.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/profiler/tests/xpcshell/test_feature_fileioall.js b/tools/profiler/tests/xpcshell/test_feature_fileioall.js index e98b7d2a35d5..e5ac040b9849 100644 --- a/tools/profiler/tests/xpcshell/test_feature_fileioall.js +++ b/tools/profiler/tests/xpcshell/test_feature_fileioall.js @@ -2,10 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// This is only needed for getting a temp file location, which IOUtils -// cannot currently do. -const { OS } = ChromeUtils.import("resource://gre/modules/osfile.jsm"); - add_task(async () => { info( "Test that off-main thread fileio is captured for a profiled thread, " + @@ -120,8 +116,7 @@ async function startProfilerAndTriggerFileIO({ threadsFilter ); - const tmpDir = OS.Constants.Path.tmpDir; - const path = OS.Path.join(tmpDir, filename); + const path = PathUtils.join(PathUtils.tempDir, filename); info(`Using a temporary file to test FileIO: ${path}`);