Skip to content

Commit 872eaa4

Browse files
committed
lib/std/os/linux/test.zig: don't write to the file
it wasn't necessary for the test and triggered a valgrind warning
1 parent 20bff4b commit 872eaa4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/std/os/linux/test.zig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,6 @@ test "fadvise" {
120120
var file = try tmp.dir.createFile(tmp_file_name, .{});
121121
defer file.close();
122122

123-
var buf: [2048]u8 = undefined;
124-
std.valgrind.memcheck.makeMemDefinedIfAddressable(&buf);
125-
try file.writeAll(&buf);
126-
127123
const ret = linux.fadvise(file.handle, 0, 0, linux.POSIX_FADV.SEQUENTIAL);
128124
try expectEqual(@as(usize, 0), ret);
129125
}

0 commit comments

Comments
 (0)