support rt_sigreturn

This commit is contained in:
2025-12-16 11:14:10 +01:00
parent 08f21c06fb
commit 3633346d53
4 changed files with 67 additions and 3 deletions

View File

@@ -376,6 +376,19 @@ test "nolibc_pie_fork" {
// );
// }
test "nolibc_nopie_signal_handler" {
try testHelper(
&.{ flicker_path, getTestExePath("nolibc_nopie_signal_handler") },
"In signal handler\nSignal handled successfully\n",
);
}
test "nolibc_pie_signal_handler" {
try testHelper(
&.{ flicker_path, getTestExePath("nolibc_pie_signal_handler") },
"In signal handler\nSignal handled successfully\n",
);
}
fn testPrintArgs(comptime name: []const u8) !void {
const exe_path = getTestExePath(name);
const loader_argv: []const []const u8 = &.{ flicker_path, exe_path, "foo", "bar", "baz hi" };