Commit aaf2dde6 authored by Victor Costan's avatar Victor Costan Committed by Commit Bot

NativeIO: Fix file cleanup in createFile() utility function.

Bug: 914488
Change-Id: Ie6e96662dda40da4cf2ec21aceae3a7978017829
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2249580
Commit-Queue: Marijn Kruisselbrink <mek@chromium.org>
Auto-Submit: Victor Costan <pwnall@chromium.org>
Reviewed-by: default avatarMarijn Kruisselbrink <mek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#779480}
parent 35f9791e
......@@ -10,7 +10,7 @@ async function createFile(testCase, fileName) {
const file = await nativeIO.open(fileName);
testCase.add_cleanup(async () => {
await file.close();
await nativeIO.delete('test_file');
await nativeIO.delete(fileName);
});
const writeSharedArrayBuffer = new SharedArrayBuffer(4);
......
......@@ -10,7 +10,7 @@ function createFileSync(testCase, fileName) {
const file = nativeIO.openSync(fileName);
testCase.add_cleanup(() => {
file.close();
nativeIO.deleteSync('test_file');
nativeIO.deleteSync(fileName);
});
const writtenBytes = Uint8Array.from([64, 65, 66, 67]);
......
......@@ -10,7 +10,7 @@ async function createFile(testCase, fileName) {
const file = await nativeIO.open(fileName);
testCase.add_cleanup(async () => {
await file.close();
await nativeIO.delete('test_file');
await nativeIO.delete(fileName);
});
const writeSharedArrayBuffer = new SharedArrayBuffer(4);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment