mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 08:47:35 +00:00
Tests: Remove some temporary files when finished using them
Leaving files in /tmp uses memory, which accumulates over time if you do something weird like leaving `run-tests` going all day long. :^)
This commit is contained in:
parent
0e08763483
commit
4d0abf82ed
2 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue