From 8d8ae5eebd2c81064cfe88d877940ea4e6046d16 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 20 Dec 2023 07:34:42 -0800 Subject: Add a setjmp/longjmp test between user contexts Verify that setjmp and longjmp work correctly between user contexts. Arrange stacks for uctx_func1 and uctx_func2 so that ____longjmp_chk works when setjmp and longjmp are called from different user contexts. Reviewed-by: Noah Goldstein --- stdlib/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'stdlib/Makefile') diff --git a/stdlib/Makefile b/stdlib/Makefile index d0173d06a4..f166ec6c80 100644 --- a/stdlib/Makefile +++ b/stdlib/Makefile @@ -256,6 +256,7 @@ tests := \ tst-strtol-locale \ tst-strtoll \ tst-swapcontext1 \ + tst-swapcontext2 \ tst-thread-quick_exit \ tst-tininess \ tst-unsetenv1 \ -- cgit v1.2.3