clone with fork-like behaviour

This commit is contained in:
2025-12-15 15:10:42 +01:00
parent 1b109ab5aa
commit 403301a06e
3 changed files with 78 additions and 4 deletions

View File

@@ -339,6 +339,19 @@ test "nolibc_pie_clone_raw" {
);
}
test "nolibc_nopie_clone_no_new_stack" {
try testHelper(
&.{ flicker_path, getTestExePath("nolibc_nopie_clone_no_new_stack") },
"Child: Hello\nParent: Goodbye\n",
);
}
test "nolibc_pie_clone_no_new_stack" {
try testHelper(
&.{ flicker_path, getTestExePath("nolibc_pie_clone_no_new_stack") },
"Child: Hello\nParent: Goodbye\n",
);
}
test "echo" {
try testHelper(&.{ "echo", "Hello", "There" }, "Hello There\n");
}