diff --git a/Tests/AK/TestFormat.cpp b/Tests/AK/TestFormat.cpp index 89324d37aaf..61923da842e 100644 --- a/Tests/AK/TestFormat.cpp +++ b/Tests/AK/TestFormat.cpp @@ -10,6 +10,7 @@ #include #include #include +#include TEST_CASE(is_integral_works_properly) { @@ -232,6 +233,8 @@ TEST_CASE(file_descriptor) EXPECT_EQ("Hello, World!\nfoobar\n"sv, StringView { buffer.span().trim(nread) }); fclose(file); + + unlink(filename); } TEST_CASE(floating_point_numbers) diff --git a/Tests/LibCore/TestLibCoreIODevice.cpp b/Tests/LibCore/TestLibCoreIODevice.cpp index 0af3f820e94..8bb74f26fd7 100644 --- a/Tests/LibCore/TestLibCoreIODevice.cpp +++ b/Tests/LibCore/TestLibCoreIODevice.cpp @@ -35,6 +35,7 @@ TEST_CASE(file_readline) file->close(); outputfile->close(); VERIFY(files_have_same_contents(path, output_path)); + unlink(output_path); } TEST_CASE(file_get_read_position) @@ -88,4 +89,5 @@ TEST_CASE(file_lines_range) file->close(); outputfile->close(); VERIFY(files_have_same_contents(path, output_path)); + unlink(output_path); }