Fix issue when removing test files on abort.

This commit is contained in:
Christoffer Lerno
2025-12-31 00:13:38 +01:00
parent d8a7c57b56
commit 04706f2dcd
3 changed files with 33 additions and 34 deletions

View File

@@ -38,7 +38,7 @@ fn int main(String[] args)
libc::signal(libc::SIGINT, fn void (CInt _signal) {
foreach (f : path::ls(mem, context.start_cwd)!!)
{
if (f.str_view().starts_with("_c3test_")) (void)path::rmtree(context.start_cwd.tappend(f.str_view())!!);
if (f.str_view().starts_with("_c3test_")) (void)path::rmtree(context.start_cwd.append(mem, f.str_view()));
}
os::exit(1);
});